CanvasImageModel


Object Hierarchy:

Goo.CanvasImageModel Goo.CanvasImageModel Goo.CanvasImageModel Goo.CanvasItemModelSimple Goo.CanvasItemModelSimple Goo.CanvasItemModelSimple->Goo.CanvasImageModel GLib.Object GLib.Object GLib.Object->Goo.CanvasItemModelSimple Goo.CanvasItemModel Goo.CanvasItemModel Goo.CanvasItemModel->Goo.CanvasImageModel Goo.CanvasItemModel->Goo.CanvasItemModelSimple

Description:

[ CCode ( type_id = "goo_canvas_image_model_get_type ()" ) ]
public class CanvasImageModel : CanvasItemModelSimple, CanvasItemModel

GooCanvasImageModel represent a model for image items.

<note><para> It is usually necessary to set the "scale-to-fit" property to true to 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. </para></note>

It is a subclass of CanvasItemModelSimple and so inherits all of the style properties such as "operator" and "pointer-events".

It also implements the CanvasItemModel interface, so you can use the CanvasItemModel functions such as raise and rotate.

To create a CanvasImageModel use CanvasImageModel.

To get or set the properties of an existing CanvasImageModel, use @get and @set.

To respond to events such as mouse clicks on the image you must connect to the signal handlers of the corresponding CanvasImage objects. (See get_item and item_created.)


Namespace: Goo
Package: goocanvas-2.0

Content:

Properties:

Creation methods:

Fields:

Inherited Members: