goocanvas.ItemModelSimple

goocanvas.ItemModelSimple — The base class for the standard canvas item models.

Synopsis

class goocanvas.ItemModelSimple(gobject.GObject):

Ancestry

+-- gobject.GObject
    +-- goocanvas.ItemModelSimple

goocanvas.ItemModelSimple Properties

"antialias"Read/WriteThe antialiasing mode to use. Default value: cairo.ANTIALIAS_DEFAULT
"clip-fill-rule"Read/WriteThe fill rule used to determine which parts of the item are clipped. Default value: cairo.FILL_RULE_WINDING
"clip-path"WriteThe sequence of commands describing the clip path of the item, specified as a string using the same syntax as in the Scalable Vector Graphics (SVG) path element. Default value: None
"fill-color"WriteThe color to use to paint the interior of the item. Default value: None
"fill-color-rgba"WriteThe color to use to paint the interior of the item, specified as a 32-bit integer value. Default value: 0
"fill-pattern"Read/WriteThe pattern to use to paint the interior of the item.
"fill-pixbuf"WriteThe pixbuf to use to paint the interior of the item.
"fill-rule"Read/WriteThe fill rule used to determine which parts of the item are filled. Default value: cairo.FILL_RULE_WINDING
"font"Read/WriteThe base font to use for the text. Default value: None
"font-desc"Read/WriteThe attributes specifying which font to use.
"line-cap"Read/WriteThe line cap style to use. Default value: cairo.LINE_CAP_BUTT
"line-dash"Read/WriteThe dash pattern to use.
"line-join"Read/WriteThe line join style to use. Default value: cairo.LINE_JOIN_MITER
"line-join-miter-limit"Read/WriteThe smallest angle to use with miter joins, in degrees. Bevel joins will be used below this limit. Allowed values: >= 0 Default value: 10.
"line-width"Read/WriteThe line width to use for the item's perimeter. Allowed values: >= 0 Default value: 0
"operator"Read/WriteThe compositing operator to use. Default value: cairo.OPERATOR_OVER
"stroke-color"WriteThe color to use for the item's perimeter. Default value: None
"stroke-color-rgba"WriteThe color to use for the item's perimeter, specified as a 32-bit integer value. Default value: 0
"stroke-pattern"Read/WriteThe pattern to use to paint the perimeter of the item.
"stroke-pixbuf"WriteThe pixbuf to use to draw the item's perimeter.

Known Implementation

goocanvas.ItemModelSimple is implementated by goocanvas.RectModel goocanvas.EllipseModel goocanvas.PathModel goocanvas.PolylineModel goocanvas.TextModel goocanvas.ImageModel goocanvas.GroupModel

Implemented Interfaces

goocanvas.ItemModelSimple implements goocanvas.ItemModel

Description

goocanvas.ItemModelSimple is used as a base class for all of the standard canvas item models. It provides default implementations for many of the goocanvas.ItemModel methods. Subclasses of goocanvas.ItemModelSimple only need to implement the create_item() method of the goocanvas.ItemModel interface, to create the default canvas item to view the item model.