21#ifndef FL_CAIRO_WINDOW_H
22# define FL_CAIRO_WINDOW_H
24#include <FL/fl_config.h>
26# ifdef FLTK_HAVE_CAIRO
32# include <FL/Fl_Double_Window.H>
119 void set_draw_cb(cairo_draw_cb cb) { draw_cb_ = cb; }
121 cairo_draw_cb draw_cb_;
This defines an FLTK window with Cairo support.
Definition Fl_Cairo_Window.H:88
The Fl_Double_Window provides a double-buffered window.
Definition Fl_Double_Window.H:31
void draw() FL_OVERRIDE
Draws the widget.
Definition Fl_Group.cxx:928
void draw() FL_OVERRIDE
Draws the widget.
Definition Fl_Window.cxx:491
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:38
static cairo_t * cairo_cc()
Gets the current Cairo context linked with a fltk window.
Definition Fl.H:1470
static bool cairo_autolink_context()
Gets the current autolink mode for Cairo support.
Definition Fl.H:1465
static cairo_t * cairo_make_current(Fl_Window *w)
Provides a Cairo context for window wi.
Definition Fl_Cairo.cxx:99
static void cairo_flush(cairo_t *c)
Flush Cairo drawings on Cairo context c.
Definition Fl.H:1515