GooCanvas.CanvasTable

g GObject.GInterface GObject.GInterface GooCanvas.CanvasItem GooCanvas.CanvasItem GObject.GInterface->GooCanvas.CanvasItem GObject.Object GObject.Object GooCanvas.CanvasItemSimple GooCanvas.CanvasItemSimple GObject.Object->GooCanvas.CanvasItemSimple GooCanvas.CanvasGroup GooCanvas.CanvasGroup GooCanvas.CanvasTable GooCanvas.CanvasTable GooCanvas.CanvasGroup->GooCanvas.CanvasTable GooCanvas.CanvasItem->GooCanvas.CanvasItemSimple GooCanvas.CanvasItemSimple->GooCanvas.CanvasGroup

Subclasses:

None

Methods

Inherited:

GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)

Structs:

GObject.ObjectClass (5)

Virtual Methods

Inherited:

GooCanvas.CanvasItemSimple (4), GObject.Object (7), GooCanvas.CanvasItem (44)

Properties

Inherited:

GooCanvas.CanvasGroup (4), GooCanvas.CanvasItemSimple (23), GooCanvas.CanvasItem (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.CanvasItem (14)

Fields

Inherited:

GObject.Object (1), GooCanvas.CanvasItem (14)

Name

Type

Access

Description

parent

GooCanvas.CanvasGroup

r

table_data

GooCanvas.CanvasTableData

r

Class Details

class GooCanvas.CanvasTable(**kwargs)
Bases:

GooCanvas.CanvasGroup

Abstract:

No

Structure:

GooCanvas.CanvasTableClass

GooCanvas.CanvasTable is 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.

Items are added to the table using the normal methods, then goo_canvas_item_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.CanvasTable is a subclass of GooCanvas.CanvasItemSimple and so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”. Setting a style property on a GooCanvas.CanvasTable will affect all children of the GooCanvas.CanvasTable (unless the children override the property setting).

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

To create a GooCanvas.CanvasTable use goo_canvas_table_new().

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

Property Details

GooCanvas.CanvasTable.props.column_spacing
Name:

column-spacing

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The default space between columns

GooCanvas.CanvasTable.props.homogeneous_columns
Name:

homogeneous-columns

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

If all columns are the same width

GooCanvas.CanvasTable.props.homogeneous_rows
Name:

homogeneous-rows

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

If all rows are the same height

GooCanvas.CanvasTable.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.CanvasTable.props.row_spacing
Name:

row-spacing

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The default space between rows

GooCanvas.CanvasTable.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.CanvasTable.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.CanvasTable.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