FLTK 1.3.4: Fl_Cairo_State Class Reference

FLTK 1.3.4

Public Member Functions | List of all members
Fl_Cairo_State Class Reference
Cairo Support Functions and Classes

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

`#include <Fl_Cairo.H>`

## Public Member Functions
bool | autolink () const
| Gets the autolink option. See Fl::cairo_autolink_context(bool)
void | autolink (bool b)
| Sets the autolink option, only available with –enable-cairoext.
cairo_t * | cc () const
| Gets the current cairo context.
void | cc (cairo_t *c, bool own=true)
| Sets the current cairo context. More...
void | gc (void *c)
| Sets the gc `c` to keep track on.
void * | gc () const
| Gets the last gc attached to a cc.
void | window (void *w)
| Sets the window `w` to keep track on.
void * | window () const
| Gets the last window attached to a cc.

## Detailed Description

Contains all the necessary info on the current cairo context.

A private internal & unique corresponding object is created to permit cairo context state handling while keeping it opaque. For internal use only.

Note
  Only available when configure has the –enable-cairo option

## Member Function Documentation

## ◆ cc()

void Fl_Cairo_State::cc | ( | cairo_t * | c,
|  | bool | own = `true`
| ) |  |
| inline

Sets the current cairo context.

`own` == true (the default) indicates that the cairo context `c` will be deleted by FLTK internally when another cc is set later.

`own` == false indicates cc deletion is handled externally by the user program.

The documentation for this class was generated from the following files:

- Fl_Cairo.H
- Fl_Cairo.cxx

- © 1998-2016 by Bill Spitzak and others.