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>
92 Fl_Cairo_Window(
int W,
int H,
const char *L = 0)
94 Fl_Cairo_Window(
int X,
int Y,
int W,
int H,
const char *L = 0)
113 typedef void (*
cairo_draw_cb) (Fl_Cairo_Window* self, cairo_t* def);
121 cairo_draw_cb draw_cb_;
void(* cairo_draw_cb)(Fl_Cairo_Window *self, cairo_t *def)
The Cairo draw callback prototype you need to implement.
Definition Fl_Cairo_Window.H:112
void set_draw_cb(cairo_draw_cb cb)
You must provide a draw callback that implements your Cairo rendering.
Definition Fl_Cairo_Window.H:118
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_Group.cxx:943
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 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
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:1454