FLTK 1.4.0
Loading...
Searching...
No Matches
Fl_Cairo.H File Reference

Cairo is currently supported for the following platforms: Windows, macOS, Unix/Linux (X11 + Wayland). More...

#include <FL/Fl.H>
#include <cairo.h>

Go to the source code of this file.

Classes

class  Fl_Cairo_State
 Contains all the necessary info on the current cairo context. More...
 

Detailed Description

Cairo is currently supported for the following platforms: Windows, macOS, Unix/Linux (X11 + Wayland).

Note
In FLTK 1.3.x this header file (Fl_Cairo.H) included the platform specific Cairo headers. This is no longer true since 1.4.0.

This header file is platform agnostic. If you need platform specific Cairo headers you need to #include them in your source file.

To use FLTK's builtin Cairo support you need to #include <FL/Fl.H> before you include any other FLTK header which is officially required anyway. Since FLTK 1.4.0 the preprocessor constants FLTK_HAVE_CAIRO and/or FLTK_HAVE_CAIROEXT are defined in <FL/Fl.H> by including <FL/fl_config.h>.