ChamplainExportable
ChamplainExportable — An interface for objects exportable to a cairo surface
|
|
Object Hierarchy
GInterface
╰── ChamplainExportable
Prerequisites
ChamplainExportable requires
GObject.
Description
By implementing ChamplainExportable the object declares that it has a cairo
surface (cairo_surface_t) representation of it self.
Functions
champlain_exportable_set_surface ()
void
champlain_exportable_set_surface (ChamplainExportable *exportable
,
cairo_surface_t *surface
);
Set a cairo_surface_t to be associated with this tile.
Since: 0.12.12
champlain_exportable_get_surface ()
cairo_surface_t *
champlain_exportable_get_surface (ChamplainExportable *exportable
);
Gets the surface
Returns
the cairo_surface_t of the object.
[transfer none]
Since: 0.12.12
Types and Values
ChamplainExportable
typedef struct _ChamplainExportable ChamplainExportable;
An interface common to objects having a cairo_surface_t representation.
struct ChamplainExportableIface
struct ChamplainExportableIface {
cairo_surface_t *(*get_surface)(ChamplainExportable *exportable);
void (*set_surface)(ChamplainExportable *exportable,
cairo_surface_t *surface);
};
An interface common to objects having a cairo_surface_t representation.
Property Details
The “surface”
property
“surface” CairoSurface *
A cairo_surface_t representation
Flags: Read / Write
Since: 0.12.12