![]() |
![]() |
![]() |
Cairo Composite Manager Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
CCMDrawable; CCMScreen * ccm_drawable_get_screen (CCMDrawable *self); CCMDisplay * ccm_drawable_get_display (CCMDrawable *self); XID ccm_drawable_get_xid (CCMDrawable *self); Visual * ccm_drawable_get_visual (CCMDrawable *self); cairo_format_t ccm_drawable_get_format (CCMDrawable *self); guint ccm_drawable_get_depth (CCMDrawable *self); void ccm_drawable_query_geometry (CCMDrawable *self); const CCMRegion * ccm_drawable_get_geometry (CCMDrawable *self); const CCMRegion * ccm_drawable_get_device_geometry (CCMDrawable *self); gboolean ccm_drawable_get_geometry_clipbox (CCMDrawable *self, cairo_rectangle_t *area); gboolean ccm_drawable_get_device_geometry_clipbox (CCMDrawable *self, cairo_rectangle_t *area); gboolean ccm_drawable_is_damaged (CCMDrawable *self); void ccm_drawable_damage_region (CCMDrawable *self, const CCMRegion *area); void ccm_drawable_damage_region_silently (CCMDrawable *self, const CCMRegion *area); void ccm_drawable_damage (CCMDrawable *self); void ccm_drawable_undamage_region (CCMDrawable *self, CCMRegion *region); void ccm_drawable_repair (CCMDrawable *self); void ccm_drawable_move (CCMDrawable *self, int x, int y); void ccm_drawable_resize (CCMDrawable *self, int width, int height); void ccm_drawable_flush (CCMDrawable *self); void ccm_drawable_flush_region (CCMDrawable *self, CCMRegion *region); cairo_surface_t * ccm_drawable_get_surface (CCMDrawable *self); cairo_t * ccm_drawable_create_context (CCMDrawable *self); cairo_path_t * ccm_drawable_get_geometry_path (CCMDrawable *self, cairo_t *context); void ccm_drawable_get_damage_path (CCMDrawable *self, cairo_t *context); void ccm_drawable_push_matrix (CCMDrawable *self, gchar *key, cairo_matrix_t *matrix); void ccm_drawable_pop_matrix (CCMDrawable *self, gchar *key); cairo_matrix_t ccm_drawable_get_transform (CCMDrawable *self);
"damaged" gpointer : Read "depth" guint : Read / Write / Construct "drawable" gulong : Read / Write / Construct Only "geometry" gpointer : Read / Write / Construct "screen" gpointer : Read / Write / Construct Only "transform" CCMDrawableMatrix* : Read "visual" gpointer : Read / Write / Construct
CCMScreen * ccm_drawable_get_screen (CCMDrawable *self);
Returns the CCMScreen associated with drawable.
|
CCMDrawable |
Returns : |
CCMScreen |
CCMDisplay * ccm_drawable_get_display (CCMDrawable *self);
Returns the CCMDisplay associated with drawable.
|
CCMDrawable |
Returns : |
CCMDisplay |
XID ccm_drawable_get_xid (CCMDrawable *self);
Returns the X resource (window or pixmap) belonging to a Drawable
|
CCMDrawable |
Returns : |
XID |
Visual * ccm_drawable_get_visual (CCMDrawable *self);
Return visual of drawable
|
CCMDrawable |
Returns : |
Visual |
cairo_format_t ccm_drawable_get_format (CCMDrawable *self);
Get cairo format of drawable.
|
CCMDrawable |
Returns : |
cairo_format_t |
guint ccm_drawable_get_depth (CCMDrawable *self);
Get depth of drawable.
|
CCMDrawable |
Returns : |
drawable depth |
void ccm_drawable_query_geometry (CCMDrawable *self);
Request the region covered by the Drawable.
|
CCMDrawable |
const CCMRegion * ccm_drawable_get_geometry (CCMDrawable *self);
Gets the region covered by the Drawable. The coordinates are relative to the parent Drawable. If the drawable have some transformations this function return the transformed region
|
CCMDrawable |
Returns : |
const CCMRegion |
const CCMRegion * ccm_drawable_get_device_geometry (CCMDrawable *self);
Gets the region covered by the Drawable. The coordinates are relative to the parent Drawable. This function always return the non transformed geometry.
|
CCMDrawable |
Returns : |
const CCMRegion |
gboolean ccm_drawable_get_geometry_clipbox (CCMDrawable *self, cairo_rectangle_t *area);
Gets the rectangle region covered by the Drawable. The coordinates are relative to the parent Drawable. If the drawable have some transformations this function return the transformed clipbox.
|
CCMDrawable |
|
cairo_rectangle_t |
Returns : |
FALSE if fail |
gboolean ccm_drawable_get_device_geometry_clipbox (CCMDrawable *self, cairo_rectangle_t *area);
Gets the rectangle region covered by the Drawable. The coordinates are relative to the parent Drawable. This function always return the non transformed clipbox.
|
CCMDrawable |
|
cairo_rectangle_t |
Returns : |
FALSE if fail |
gboolean ccm_drawable_is_damaged (CCMDrawable *self);
Return if drawable is damaged
|
CCMDrawable |
Returns : |
gboolean |
void ccm_drawable_damage_region (CCMDrawable *self, const CCMRegion *area);
Add a damaged region for a drawable
|
CCMDrawable |
|
void ccm_drawable_damage_region_silently (CCMDrawable *self, const CCMRegion *area);
Add a damaged region for a drawable without generate an event
|
CCMDrawable |
|
void ccm_drawable_damage (CCMDrawable *self);
Damage a drawable
|
CCMDrawable |
void ccm_drawable_undamage_region (CCMDrawable *self, CCMRegion *region);
Remove a part of damaged region of a drawable
|
CCMDrawable |
|
CCMRegion |
void ccm_drawable_repair (CCMDrawable *self);
Repair all damaged regions of a drawable
|
CCMDrawable |
void ccm_drawable_move (CCMDrawable *self, int x, int y);
Repositions a drawable relative to its parent drawable.
|
CCMDrawable |
|
X coordinate relative to drawable's parent |
|
Y coordinate relative to drawable's parent |
void ccm_drawable_resize (CCMDrawable *self, int width, int height);
Resize drawable.
|
CCMDrawable |
|
new width of the drawable |
|
new height of the drawable |
void ccm_drawable_flush (CCMDrawable *self);
Flush all pending draw operation on drawable.
|
CCMDrawable |
void ccm_drawable_flush_region (CCMDrawable *self, CCMRegion *region);
Flush all pending draw operation on region of drawable.
|
CCMDrawable |
|
CCMRegion |
cairo_surface_t * ccm_drawable_get_surface (CCMDrawable *self);
Gets cairo surface of drawable
|
CCMDrawable |
Returns : |
cairo_surface_t |
cairo_t * ccm_drawable_create_context (CCMDrawable *self);
Create cairo context for a drawable
|
CCMDrawable |
Returns : |
cairo_t |
cairo_path_t * ccm_drawable_get_geometry_path (CCMDrawable *self, cairo_t *context);
Get geometry path.
|
CCMDrawable |
|
cairo_t |
Returns : |
cairo_path_t |
void ccm_drawable_get_damage_path (CCMDrawable *self, cairo_t *context);
Get damaged path.
|
CCMDrawable |
|
cairo_t |
void ccm_drawable_push_matrix (CCMDrawable *self, gchar *key, cairo_matrix_t *matrix);
Push a matrix in CCMDrawable transform stack with key
if a matrix already
exist for this key it was replaced.
|
CCMDrawable |
|
matrix key |
|
cairo_matrix_t |
void ccm_drawable_pop_matrix (CCMDrawable *self, gchar *key);
Pop a matrix associated with key
from CCMDrawable transform stack.
|
CCMDrawable |
|
matrix key |
cairo_matrix_t ccm_drawable_get_transform (CCMDrawable *self);
Get the current cairo_matrix_t transform
return: cairo_matrix_t
|
|
Returns : |
"depth"
property"depth" guint : Read / Write / Construct
Depth of the drawable.
Default value: 0
"drawable"
property"drawable" gulong : Read / Write / Construct Only
The X resource (window or pixmap) belonging to a Drawable.
Allowed values: <= G_MAXINT64
"geometry"
property"geometry" gpointer : Read / Write / Construct
Damaged region of the drawable
"transform"
property "transform" CCMDrawableMatrix* : Read
The cumulated cairo_matrix_t transforms of the drawable
"damaged"
signalvoid user_function (CCMDrawable *self, gpointer damaged, gpointer user_data) : Run Last
Emitted when a CCMRegion of the drawable is damaged.
|
CCMDrawable |
|
damaged CCMRegion |
|
user data set when the signal handler was connected. |