23 #ifndef FL_CAIRO_WINDOW_H
24 # define FL_CAIRO_WINDOW_H
25 # ifdef FLTK_HAVE_CAIRO
30 # include <FL/Fl_Double_Window.H>
72 cairo_draw_cb draw_cb_;
78 # endif // FLTK_HAVE_CAIRO
79 #endif // FL_CAIRO_WINDOW_H
virtual void draw()
Draws the widget.
Definition: Fl_Window_shape.cxx:337
The Fl_Double_Window provides a double-buffered window.
Definition: Fl_Double_Window.H:40
static bool cairo_autolink_context()
Gets the current autolink mode for cairo support.
Definition: Fl.H:1231
Fl_Double_Window(int W, int H, const char *l=0)
Creates a new Fl_Double_Window widget using the given position, size, and label (title) string...
Definition: Fl_Double_Window.cxx:63
static cairo_t * cairo_make_current(Fl_Window *w)
Provides a corresponding cairo context for window wi.
Definition: Fl_Cairo.cxx:62
static cairo_t * cairo_cc()
Gets the current cairo context linked with a fltk window.
Definition: Fl.H:1233
void set_draw_cb(cairo_draw_cb cb)
You must provide a draw callback which will implement your cairo rendering.
Definition: Fl_Cairo_Window.H:70
This defines a pre-configured cairo fltk window.
Definition: Fl_Cairo_Window.H:48
void draw()
Overloaded to provide cairo callback support.
Definition: Fl_Cairo_Window.H:55