GooCanvas.CanvasTable¶
- Subclasses:
None
Methods¶
- Inherited:
GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)
- Structs:
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The default space between columns |
||
r/w |
If all columns are the same width |
||
r/w |
If all rows are the same height |
||
r/w |
The width of the grid line to draw between rows |
||
r/w |
The default space between rows |
||
r/w |
The width of the grid line to draw between columns |
||
r/w |
The amount of spacing between the lefmost and rightmost cells and the border grid line |
||
r/w |
The amount of spacing between the topmost and bottommost cells and the border grid line |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
table_data |
r |
Class Details¶
- class GooCanvas.CanvasTable(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GooCanvas.CanvasTableis a table container used to lay out other canvas items. It is used in a similar way to how theGtk.Tablewidget 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.CanvasTableis a subclass ofGooCanvas.CanvasItemSimpleand so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”. Setting a style property on aGooCanvas.CanvasTablewill affect all children of theGooCanvas.CanvasTable(unless the children override the property setting).GooCanvas.CanvasTableimplements theGooCanvas.CanvasIteminterface, so you can use theGooCanvas.CanvasItemfunctions such asGooCanvas.CanvasItem.raise_() andGooCanvas.CanvasItem.rotate(), and the properties such as “visibility” and “pointer-events”.To create a
GooCanvas.CanvasTableuse 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¶
-
The default space between columns
- GooCanvas.CanvasTable.props.homogeneous_columns¶
-
If all columns are the same width
- GooCanvas.CanvasTable.props.homogeneous_rows¶
-
If all rows are the same height
- GooCanvas.CanvasTable.props.horz_grid_line_width¶
-
The width of the grid line to draw between rows
- GooCanvas.CanvasTable.props.row_spacing¶
-
The default space between rows
- GooCanvas.CanvasTable.props.vert_grid_line_width¶
-
The width of the grid line to draw between columns
- GooCanvas.CanvasTable.props.x_border_spacing¶
-
The amount of spacing between the lefmost and rightmost cells and the border grid line