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_;
void(* cairo_draw_cb)(Fl_Cairo_Window *self, cairo_t *def)
This defines the cairo draw callback prototype that you must further.
Definition Fl_Cairo_Window.H:65
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
void draw()
Overloaded to provide cairo callback support.
Definition Fl_Cairo_Window.H:55
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
void draw()
Draws the widget.
Definition Fl_Group.cxx:738
static cairo_t * cairo_cc()
Gets the current cairo context linked with a fltk window.
Definition Fl.H:1320
static cairo_t * cairo_make_current(Fl_Window *w)
Provides a corresponding cairo context for window wi.
Definition Fl_Cairo.cxx:75
static void cairo_autolink_context(bool alink)
when FLTK_HAVE_CAIRO is defined and cairo_autolink_context() is true, any current window dc is linked...
Definition Fl.H:1310