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>
121 cairo_draw_cb draw_cb_;
This defines an FLTK window with Cairo support.
Definition: Fl_Cairo_Window.H:89
void draw() FL_OVERRIDE
Overloaded to provide Cairo callback support.
Definition: Fl_Cairo_Window.H:99
void set_draw_cb(cairo_draw_cb cb)
You must provide a draw callback that implements your Cairo rendering.
Definition: Fl_Cairo_Window.H:119
The Fl_Double_Window provides a double-buffered window.
Definition: Fl_Double_Window.H:31
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
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:46
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:100
static void cairo_flush(cairo_t *c)
Flush Cairo drawings on Cairo context c.
Definition: Fl.H:1515