Cairo::GObject(3) User Contributed Perl Documentation Cairo::GObject(3)

Cairo::GObject - Integrate Cairo into the Glib type system

use Cairo::GObject;
# Cairo and Glib are now loaded and the Cairo types are registered with
# Glib's type machinery.  This allows you to correctly use Cairo types
# in signals and properties.

Cairo::GObject registers Cairo's types ("Cairo::Context", "Cairo::Surface", etc.) with Glib's type systems so that they can be used normally in signals and properties. If you have encountered an error akin to this:

GType CairoContext (15497280) is not registered with gperl

-- then you need to use Cairo::GObject.

Copyright (C) 2011 by the cairo perl team

2023-07-25 perl v5.38.0