25# ifdef FLTK_HAVE_CAIRO 
   30# include <FL/Fl_Export.H> 
   46class FL_EXPORT Fl_Cairo_State {
 
   48  Fl_Cairo_State() : cc_(0), own_cc_(
false), autolink_(
false), window_(0), gc_(0) {}
 
   51    cairo_t* 
cc()
 const {
return cc_;}          
 
   61    void cc(cairo_t* c, 
bool own=
true)  {
 
   62        if (cc_ && own_cc_) cairo_destroy(cc_);
 
 
   67    void  autolink(
bool b);                     
 
   69    void* 
window()
 const {
return window_;}        
 
   70    void  gc(
void* c)  {gc_=c;}                       
 
   71    void* 
gc()
 const {
return gc_;}            
 
 
 
 
 
 
void window(void *w)
Sets the window w to keep track on.
Definition Fl_Cairo.H:68
void cc(cairo_t *c, bool own=true)
Sets the current cairo context.
Definition Fl_Cairo.H:61
void * gc() const
Gets the last gc attached to a cc.
Definition Fl_Cairo.H:71
void * window() const
Gets the last window attached to a cc.
Definition Fl_Cairo.H:69
void gc(void *c)
Sets the gc c to keep track on.
Definition Fl_Cairo.H:70
cairo_t * cc() const
Gets the current cairo context.
Definition Fl_Cairo.H:51
bool autolink() const
Gets the autolink option. See Fl::cairo_autolink_context(bool)
Definition Fl_Cairo.H:52