GooCanvas.CanvasTableModel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
GooCanvas.CanvasGroupModel (4), GooCanvas.CanvasItemModelSimple (23), GooCanvas.CanvasItemModel (9)
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_object |
r |
||
table_data |
r |
Class Details¶
- class GooCanvas.CanvasTableModel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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 theGtk.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 ofGooCanvas.CanvasItemModelSimple
and so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”. Setting a style property on aGooCanvas.CanvasTableModel
will affect all children of theGooCanvas.CanvasTableModel
(unless the children override the property setting).GooCanvas.CanvasTableModel
implements theGooCanvas.CanvasItemModel
interface, so you can use theGooCanvas.CanvasItemModel
functions such asGooCanvas.CanvasItemModel.raise_
() andGooCanvas.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¶
-
The default space between columns
- GooCanvas.CanvasTableModel.props.homogeneous_columns¶
-
If all columns are the same width
- GooCanvas.CanvasTableModel.props.homogeneous_rows¶
-
If all rows are the same height
- GooCanvas.CanvasTableModel.props.horz_grid_line_width¶
-
The width of the grid line to draw between rows
- GooCanvas.CanvasTableModel.props.row_spacing¶
-
The default space between rows
- GooCanvas.CanvasTableModel.props.vert_grid_line_width¶
-
The width of the grid line to draw between columns
- GooCanvas.CanvasTableModel.props.x_border_spacing¶
-
The amount of spacing between the lefmost and rightmost cells and the border grid line