32 #ifndef FL_CAIRO_WINDOW_H
33 # define FL_CAIRO_WINDOW_H
34 # ifdef FLTK_HAVE_CAIRO
39 # include <FL/Fl_Double_Window.H>
68 Fl::cairo_make_current(
this);
81 cairo_draw_cb draw_cb_;
87 # endif // FLTK_HAVE_CAIRO
88 #endif // FL_CAIRO_WINDOW_H
virtual void draw()
Draws the widget.
Definition: Fl_Window.cxx:104
The Fl_Double_Window provides a double-buffered window.
Definition: Fl_Double_Window.H:49
static bool cairo_autolink_context()
Gets the current autolink mode for cairo support.
Definition: Fl.H:1065
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.H:68
static cairo_t * cairo_cc()
Gets the current cairo context linked with a fltk window.
Definition: Fl.H:1067
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:79
This defines a pre-configured cairo fltk window.
Definition: Fl_Cairo_Window.H:57
void draw()
Overloaded to provide cairo callback support.
Definition: Fl_Cairo_Window.H:64