Gtk.CellAreaBox¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.CellArea (42), GObject.Object (37), Gtk.Buildable (1), Gtk.CellLayout (9), Gtk.Orientable (2)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.CellAreaBox(**kwargs)¶
- Bases:
- Abstract:
No
A cell area that renders GtkCellRenderers into a row or a column
The
GtkCellAreaBox
renders cell renderers into a row or a column depending on itsGtkOrientation
.Gtk.CellAreaBox
uses a notion of packing. Packing refers to adding cell renderers with reference to a particular position in aGtkCellAreaBox
. There are two reference positions: the start and the end of the box. When theGtkCellAreaBox
is oriented in theGtk.Orientation.VERTICAL
orientation, the start is defined as the top of the box and the end is defined as the bottom. In theGtk.Orientation.HORIZONTAL
orientation start is defined as the left side and the end is defined as the right side.Alignments of
GtkCellRenderer``s rendered in adjacent rows can be configured by configuring the ``GtkCellAreaBox
align child cell property withGtk.CellArea.cell_set_property
() or by specifying the “align” argument toGtk.CellAreaBox.pack_start
() andGtk.CellAreaBox.pack_end
().Deprecated since version 4.10: List views use widgets for displaying their contents
- classmethod new()[source]¶
- Returns:
a newly created
GtkCellAreaBox
- Return type:
Creates a new
GtkCellAreaBox
.Deprecated since version 4.10.
- get_spacing()[source]¶
- Returns:
the space added between cell renderers in self.
- Return type:
Gets the spacing added between cell renderers.
Deprecated since version 4.10.
- pack_end(renderer, expand, align, fixed)[source]¶
- Parameters:
renderer (
Gtk.CellRenderer
) – theGtkCellRenderer
to addexpand (
bool
) – whether renderer should receive extra space when the area receives more than its natural sizealign (
bool
) – whether renderer should be aligned in adjacent rowsfixed (
bool
) – whether renderer should have the same size in all rows
Adds renderer to self, packed with reference to the end of self.
The renderer is packed after (away from end of) any other
GtkCellRenderer
packed with reference to the end of self.Deprecated since version 4.10.
- pack_start(renderer, expand, align, fixed)[source]¶
- Parameters:
renderer (
Gtk.CellRenderer
) – theGtkCellRenderer
to addexpand (
bool
) – whether renderer should receive extra space when the area receives more than its natural sizealign (
bool
) – whether renderer should be aligned in adjacent rowsfixed (
bool
) – whether renderer should have the same size in all rows
Adds renderer to self, packed with reference to the start of self.
The renderer is packed after any other
GtkCellRenderer
packed with reference to the start of self.Deprecated since version 4.10.
Property Details¶
- Gtk.CellAreaBox.props.spacing¶
- Name:
spacing
- Type:
- Default Value:
0
- Flags:
The amount of space to reserve between cells.