GooCanvas.CanvasItemModelSimple

g GObject.GInterface GObject.GInterface GooCanvas.CanvasItemModel GooCanvas.CanvasItemModel GObject.GInterface->GooCanvas.CanvasItemModel GObject.Object GObject.Object GooCanvas.CanvasItemModelSimple GooCanvas.CanvasItemModelSimple GObject.Object->GooCanvas.CanvasItemModelSimple GooCanvas.CanvasItemModel->GooCanvas.CanvasItemModelSimple

Subclasses:

GooCanvas.CanvasEllipseModel, GooCanvas.CanvasGridModel, GooCanvas.CanvasGroupModel, GooCanvas.CanvasImageModel, GooCanvas.CanvasPathModel, GooCanvas.CanvasPolylineModel, GooCanvas.CanvasRectModel, GooCanvas.CanvasTextModel

Methods

Inherited:

GObject.Object (37), GooCanvas.CanvasItemModel (30)

Structs:

GObject.ObjectClass (5)

Virtual Methods

Inherited:

GObject.Object (7), GooCanvas.CanvasItemModel (19)

Properties

Inherited:

GooCanvas.CanvasItemModel (9)

Name

Type

Flags

Short Description

antialias

GooCanvas.CairoAntialias

r/w

The antialiasing mode to use

clip-fill-rule

GooCanvas.CairoFillRule

r/w

The fill rule used to determine which parts of the item are clipped

clip-path

str

w

The sequence of path commands specifying the clip path

fill-color

str

w

The color to use to paint the interior of the item. To disable painting set the ‘fill-pattern’ property to None

fill-color-gdk-rgba

Gdk.RGBA

r/w

The color to use to paint the interior of the item, specified as a Gdk.RGBA. To disable painting set the ‘fill-pattern’ property to None

fill-color-rgba

int

r/w

The color to use to paint the interior of the item, specified as a 32-bit integer value. To disable painting set the ‘fill-pattern’ property to None

fill-pattern

r/w

The pattern to use to paint the interior of the item, or None to disable painting

fill-pixbuf

GdkPixbuf.Pixbuf

w

The pixbuf to use to paint the interior of the item. To disable painting set the ‘fill-pattern’ property to None

fill-rule

GooCanvas.CairoFillRule

r/w

The fill rule used to determine which parts of the item are filled

font

str

r/w

The base font to use for the text

font-desc

Pango.FontDescription

r/w

The attributes specifying which font to use

hint-metrics

GooCanvas.CairoHintMetrics

r/w

The hinting to be used for font metrics

line-cap

GooCanvas.CairoLineCap

r/w

The line cap style to use

line-dash

GooCanvas.CanvasLineDash

r/w

The dash pattern to use

line-join

GooCanvas.CairoLineJoin

r/w

The line join style to use

line-join-miter-limit

float

r/w

The smallest angle to use with miter joins, in degrees. Bevel joins will be used below this limit

line-width

float

r/w

The line width to use for the item’s perimeter

operator

GooCanvas.CairoOperator

r/w

The compositing operator to use

stroke-color

str

w

The color to use for the item’s perimeter. To disable painting set the ‘stroke-pattern’ property to None

stroke-color-gdk-rgba

Gdk.RGBA

r/w

The color to use for the item’s perimeter, specified as a Gdk.RGBA. To disable painting set the ‘stroke-pattern’ property to None

stroke-color-rgba

int

r/w

The color to use for the item’s perimeter, specified as a 32-bit integer value. To disable painting set the ‘stroke-pattern’ property to None

stroke-pattern

r/w

The pattern to use to paint the perimeter of the item, or None disable painting

stroke-pixbuf

GdkPixbuf.Pixbuf

w

The pixbuf to use to draw the item’s perimeter. To disable painting set the ‘stroke-pattern’ property to None

Signals

Inherited:

GObject.Object (1), GooCanvas.CanvasItemModel (6)

Fields

Inherited:

GObject.Object (1), GooCanvas.CanvasItemModel (6)

Name

Type

Access

Description

description

str

r

parent

GooCanvas.CanvasItemModel

r

the parent model.

parent_object

GObject.Object

r

simple_data

GooCanvas.CanvasItemSimpleData

r

data used by the canvas item for viewing the model.

title

str

r

Class Details

class GooCanvas.CanvasItemModelSimple(**kwargs)
Bases:

GObject.Object, GooCanvas.CanvasItemModel

Abstract:

No

Structure:

GooCanvas.CanvasItemModelSimpleClass

GooCanvas.CanvasItemModelSimple is used as a base class for the standard canvas item models. It can also be used as the base class for new custom canvas item models.

The Model/View canvas feature may be removed in a future version of GooCanvas.Canvas.

It provides default implementations for many of the GooCanvas.CanvasItemModel methods.

Subclasses of GooCanvas.CanvasItemModelSimple only need to implement the create_item() method of the GooCanvas.CanvasItemModel interface, to create the default canvas item to view the item model.

Property Details

GooCanvas.CanvasItemModelSimple.props.antialias
Name:

antialias

Type:

GooCanvas.CairoAntialias

Default Value:

GooCanvas.CairoAntialias.GRAY

Flags:

READABLE, WRITABLE

The antialiasing mode to use

GooCanvas.CanvasItemModelSimple.props.clip_fill_rule
Name:

clip-fill-rule

Type:

GooCanvas.CairoFillRule

Default Value:

GooCanvas.CairoFillRule.WINDING

Flags:

READABLE, WRITABLE

The fill rule used to determine which parts of the item are clipped

GooCanvas.CanvasItemModelSimple.props.clip_path
Name:

clip-path

Type:

str

Default Value:

None

Flags:

WRITABLE

The 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.

GooCanvas.CanvasItemModelSimple.props.fill_color
Name:

fill-color

Type:

str

Default Value:

None

Flags:

WRITABLE

The color to use to paint the interior of the item. To disable painting set the ‘fill-pattern’ property to None

GooCanvas.CanvasItemModelSimple.props.fill_color_gdk_rgba
Name:

fill-color-gdk-rgba

Type:

Gdk.RGBA

Default Value:

None

Flags:

READABLE, WRITABLE

The color to use to paint the interior of the item, specified as a Gdk.RGBA. To disable painting set the ‘fill-pattern’ property to None

GooCanvas.CanvasItemModelSimple.props.fill_color_rgba
Name:

fill-color-rgba

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

The color to use to paint the interior of the item, specified as a 32-bit integer value. To disable painting set the ‘fill-pattern’ property to None

GooCanvas.CanvasItemModelSimple.props.fill_pattern
Name:

fill-pattern

Type:

Default Value:

None

Flags:

READABLE, WRITABLE

The pattern to use to paint the interior of the item, or None to disable painting

GooCanvas.CanvasItemModelSimple.props.fill_pixbuf
Name:

fill-pixbuf

Type:

GdkPixbuf.Pixbuf

Default Value:

None

Flags:

WRITABLE

The pixbuf to use to paint the interior of the item. To disable painting set the ‘fill-pattern’ property to None

GooCanvas.CanvasItemModelSimple.props.fill_rule
Name:

fill-rule

Type:

GooCanvas.CairoFillRule

Default Value:

GooCanvas.CairoFillRule.WINDING

Flags:

READABLE, WRITABLE

The fill rule used to determine which parts of the item are filled

GooCanvas.CanvasItemModelSimple.props.font
Name:

font

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The base font to use for the text

GooCanvas.CanvasItemModelSimple.props.font_desc
Name:

font-desc

Type:

Pango.FontDescription

Default Value:

None

Flags:

READABLE, WRITABLE

The attributes specifying which font to use

GooCanvas.CanvasItemModelSimple.props.hint_metrics
Name:

hint-metrics

Type:

GooCanvas.CairoHintMetrics

Default Value:

GooCanvas.CairoHintMetrics.OFF

Flags:

READABLE, WRITABLE

The hinting to be used for font metrics

GooCanvas.CanvasItemModelSimple.props.line_cap
Name:

line-cap

Type:

GooCanvas.CairoLineCap

Default Value:

GooCanvas.CairoLineCap.BUTT

Flags:

READABLE, WRITABLE

The line cap style to use

GooCanvas.CanvasItemModelSimple.props.line_dash
Name:

line-dash

Type:

GooCanvas.CanvasLineDash

Default Value:

None

Flags:

READABLE, WRITABLE

The dash pattern to use

GooCanvas.CanvasItemModelSimple.props.line_join
Name:

line-join

Type:

GooCanvas.CairoLineJoin

Default Value:

GooCanvas.CairoLineJoin.MITER

Flags:

READABLE, WRITABLE

The line join style to use

GooCanvas.CanvasItemModelSimple.props.line_join_miter_limit
Name:

line-join-miter-limit

Type:

float

Default Value:

10.0

Flags:

READABLE, WRITABLE

The smallest angle to use with miter joins, in degrees. Bevel joins will be used below this limit

GooCanvas.CanvasItemModelSimple.props.line_width
Name:

line-width

Type:

float

Default Value:

2.0

Flags:

READABLE, WRITABLE

The line width to use for the item’s perimeter

GooCanvas.CanvasItemModelSimple.props.operator
Name:

operator

Type:

GooCanvas.CairoOperator

Default Value:

GooCanvas.CairoOperator.OVER

Flags:

READABLE, WRITABLE

The compositing operator to use

GooCanvas.CanvasItemModelSimple.props.stroke_color
Name:

stroke-color

Type:

str

Default Value:

None

Flags:

WRITABLE

The color to use for the item’s perimeter. To disable painting set the ‘stroke-pattern’ property to None

GooCanvas.CanvasItemModelSimple.props.stroke_color_gdk_rgba
Name:

stroke-color-gdk-rgba

Type:

Gdk.RGBA

Default Value:

None

Flags:

READABLE, WRITABLE

The color to use for the item’s perimeter, specified as a Gdk.RGBA. To disable painting set the ‘stroke-pattern’ property to None

GooCanvas.CanvasItemModelSimple.props.stroke_color_rgba
Name:

stroke-color-rgba

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

The color to use for the item’s perimeter, specified as a 32-bit integer value. To disable painting set the ‘stroke-pattern’ property to None

GooCanvas.CanvasItemModelSimple.props.stroke_pattern
Name:

stroke-pattern

Type:

Default Value:

None

Flags:

READABLE, WRITABLE

The pattern to use to paint the perimeter of the item, or None disable painting

GooCanvas.CanvasItemModelSimple.props.stroke_pixbuf
Name:

stroke-pixbuf

Type:

GdkPixbuf.Pixbuf

Default Value:

None

Flags:

WRITABLE

The pixbuf to use to draw the item’s perimeter. To disable painting set the ‘stroke-pattern’ property to None