21 #ifndef FL_CAIRO_WINDOW_H 22 # define FL_CAIRO_WINDOW_H 23 # ifdef FLTK_HAVE_CAIRO 28 # include <FL/Fl_Double_Window.H> 67 cairo_surface_flush(s);
80 cairo_draw_cb draw_cb_;
86 # endif // FLTK_HAVE_CAIRO 87 #endif // FL_CAIRO_WINDOW_H void draw()
Draws the widget.
Definition: Fl_Window.cxx:482
The Fl_Double_Window provides a double-buffered window.
Definition: Fl_Double_Window.H:38
static bool cairo_autolink_context()
Gets the current autolink mode for cairo support.
Definition: Fl.H:1382
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:31
static cairo_t * cairo_make_current(Fl_Window *w)
Provides a corresponding cairo context for window wi.
Definition: Fl_Cairo.cxx:70
static cairo_t * cairo_cc()
Gets the current cairo context linked with a fltk window.
Definition: Fl.H:1384
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:78
This defines a FLTK window with cairo support.
Definition: Fl_Cairo_Window.H:48
void draw()
Overloaded to provide cairo callback support.
Definition: Fl_Cairo_Window.H:58