GooCanvas.CanvasTableModel

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.CanvasGroupModel GooCanvas.CanvasGroupModel GooCanvas.CanvasTableModel GooCanvas.CanvasTableModel GooCanvas.CanvasGroupModel->GooCanvas.CanvasTableModel GooCanvas.CanvasItemModel->GooCanvas.CanvasItemModelSimple GooCanvas.CanvasItemModelSimple->GooCanvas.CanvasGroupModel

Subclasses:

None

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

Virtual Methods

Inherited:

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

Properties

Inherited:

GooCanvas.CanvasGroupModel (4), GooCanvas.CanvasItemModelSimple (23), GooCanvas.CanvasItemModel (9)

Name

Type

Flags

Short Description

column-spacing

float

r/w

The default space between columns

homogeneous-columns

bool

r/w

If all columns are the same width

homogeneous-rows

bool

r/w

If all rows are the same height

horz-grid-line-width

float

r/w

The width of the grid line to draw between rows

row-spacing

float

r/w

The default space between rows

vert-grid-line-width

float

r/w

The width of the grid line to draw between columns

x-border-spacing

float

r/w

The amount of spacing between the lefmost and rightmost cells and the border grid line

y-border-spacing

float

r/w

The amount of spacing between the topmost and bottommost cells and the border grid line

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent_object

GooCanvas.CanvasGroupModel

r

table_data

GooCanvas.CanvasTableData

r

Class Details

class GooCanvas.CanvasTableModel(**kwargs)
Bases:

GooCanvas.CanvasGroupModel

Abstract:

No

Structure:

GooCanvas.CanvasTableModelClass

GooCanvas.CanvasTableModel is a model for a table container used to lay out other canvas items. It is used in a similar way to how the Gtk.Table widget is used to lay out GTK+ widgets.

Item models are added to the table using the normal methods, then goo_canvas_item_model_set_child_properties() is used to specify how each child item is to be positioned within the table (i.e. which row and column it is in, how much padding it should have and whether it should expand or shrink).

GooCanvas.CanvasTableModel is a subclass of GooCanvas.CanvasItemModelSimple and so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”. Setting a style property on a GooCanvas.CanvasTableModel will affect all children of the GooCanvas.CanvasTableModel (unless the children override the property setting).

GooCanvas.CanvasTableModel implements the GooCanvas.CanvasItemModel interface, so you can use the GooCanvas.CanvasItemModel functions such as GooCanvas.CanvasItemModel.raise_() and GooCanvas.CanvasItem.rotate(), and the properties such as “visibility” and “pointer-events”.

To create a GooCanvas.CanvasTableModel use goo_canvas_table_model_new().

To get or set the properties of an existing GooCanvas.CanvasTableModel, use g_object_get() and g_object_set().

Property Details

GooCanvas.CanvasTableModel.props.column_spacing
Name:

column-spacing

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The default space between columns

GooCanvas.CanvasTableModel.props.homogeneous_columns
Name:

homogeneous-columns

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

If all columns are the same width

GooCanvas.CanvasTableModel.props.homogeneous_rows
Name:

homogeneous-rows

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

If all rows are the same height

GooCanvas.CanvasTableModel.props.horz_grid_line_width
Name:

horz-grid-line-width

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The width of the grid line to draw between rows

GooCanvas.CanvasTableModel.props.row_spacing
Name:

row-spacing

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The default space between rows

GooCanvas.CanvasTableModel.props.vert_grid_line_width
Name:

vert-grid-line-width

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The width of the grid line to draw between columns

GooCanvas.CanvasTableModel.props.x_border_spacing
Name:

x-border-spacing

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The amount of spacing between the lefmost and rightmost cells and the border grid line

GooCanvas.CanvasTableModel.props.y_border_spacing
Name:

y-border-spacing

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The amount of spacing between the topmost and bottommost cells and the border grid line