Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Cairo.serial

Check for changes in the graphics state of Cairo devices.


Description

Cairo.serial returns an integer that is increased with every plotting operation on the device. This allows user code to determine whether any new content has been added to the device since it was last checked.

Usage

Cairo.serial(device = dev.cur())

Arguments

device

device number or an object of the class Cairo (as obtained from the Cairo function).

Value

Integer value.

Note

The integer value overflows to 0 at 2^31. Typically only equality should be checked and for such it is extremely unlikely that the state has changed yet the serial value is the same due to overflow.

Author(s)

Simon Urbanek


Cairo

R Graphics Device using Cairo Graphics Library for Creating High-Quality Bitmap (PNG, JPEG, TIFF), Vector (PDF, SVG, PostScript) and Display (X11 and Win32) Output

v1.5-12.2
GPL-2
Authors
Simon Urbanek <Simon.Urbanek@r-project.org>, Jeffrey Horner <jeff.horner@vanderbilt.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.