GooCanvas.CanvasImageModel¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
Virtual Methods¶
- Inherited:
 
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.CanvasImageModel(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
GooCanvas.CanvasImageModelrepresent a model for image items.It is usually necessary to set the “scale-to-fit” property to
Trueto scale the image to fit the given rectangle. When using units other than %GTK_UNIT_PIXEL it is also necessary to set the “width” and “height” properties to set the desired size.It is a subclass of
GooCanvas.CanvasItemModelSimpleand so inherits all of the style properties such as “operator” and “pointer-events”.It also implements the
GooCanvas.CanvasItemModelinterface, so you can use theGooCanvas.CanvasItemModelfunctions such asGooCanvas.CanvasItemModel.raise_() andGooCanvas.CanvasItemModel.rotate().To create a
GooCanvas.CanvasImageModeluse goo_canvas_image_model_new().To get or set the properties of an existing
GooCanvas.CanvasImageModel, use g_object_get() and g_object_set().To respond to events such as mouse clicks on the image you must connect to the signal handlers of the corresponding
GooCanvas.CanvasImageobjects. (SeeGooCanvas.Canvas.get_item() andGooCanvas.Canvas::item-created.)
Property Details¶
- GooCanvas.CanvasImageModel.props.alpha¶
 - 
The opacity of the image, 0.0 is fully transparent, and 1.0 is opaque.
 
- GooCanvas.CanvasImageModel.props.height¶
 - 
The height of the image
 
- GooCanvas.CanvasImageModel.props.pattern¶
 - 
The cairo pattern to paint
 
- GooCanvas.CanvasImageModel.props.pixbuf¶
 - Name:
 pixbuf- Type:
 - Default Value:
 - Flags:
 
The
GdkPixbuf.Pixbufto display
- GooCanvas.CanvasImageModel.props.scale_to_fit¶
 - 
If the image is scaled to fit the width and height settings
 
- GooCanvas.CanvasImageModel.props.width¶
 - 
The width of the image
 
- GooCanvas.CanvasImageModel.props.x¶
 - 
The x coordinate of the image