GooCanvas.CanvasImage¶
- Subclasses:
 None
Methods¶
- Inherited:
 GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)
- Structs:
 
Virtual Methods¶
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
The opacity of the image, 0.0 is fully transparent, and 1.0 is opaque.  | 
||
r/w  | 
The height of the image  | 
||
r/w  | 
The cairo pattern to paint  | 
||
w  | 
The   | 
||
r/w  | 
If the image is scaled to fit the width and height settings  | 
||
r/w  | 
The width of the image  | 
||
r/w  | 
The x coordinate of the image  | 
||
r/w  | 
The y coordinate of the image  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
image_data  | 
r  | 
||
parent_object  | 
r  | 
Class Details¶
- class GooCanvas.CanvasImage(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
GooCanvas.CanvasImagerepresents an image item.It is usually necessary to set the “scale-to-fit” property to
Trueto scale the image to fit the given rectangle.It is a subclass of
GooCanvas.CanvasItemSimpleand so inherits all of the style properties such as “operator” and “pointer-events”.It also implements the
GooCanvas.CanvasIteminterface, so you can use theGooCanvas.CanvasItemfunctions such asGooCanvas.CanvasItem.raise_() andGooCanvas.CanvasItem.rotate().To create a
GooCanvas.CanvasImageuse goo_canvas_image_new().To get or set the properties of an existing
GooCanvas.CanvasImage, use g_object_get() and g_object_set().
Property Details¶
- GooCanvas.CanvasImage.props.alpha¶
 - 
The opacity of the image, 0.0 is fully transparent, and 1.0 is opaque.
 
- GooCanvas.CanvasImage.props.height¶
 - 
The height of the image
 
- GooCanvas.CanvasImage.props.pattern¶
 - 
The cairo pattern to paint
 
- GooCanvas.CanvasImage.props.pixbuf¶
 - Name:
 pixbuf- Type:
 - Default Value:
 - Flags:
 
The
GdkPixbuf.Pixbufto display
- GooCanvas.CanvasImage.props.scale_to_fit¶
 - 
If the image is scaled to fit the width and height settings
 
- GooCanvas.CanvasImage.props.width¶
 - 
The width of the image
 
- GooCanvas.CanvasImage.props.x¶
 - 
The x coordinate of the image