Gtk.CellAreaBox¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.CellArea (42), GObject.Object (37), Gtk.Buildable (10), Gtk.CellLayout (9), Gtk.Orientable (2)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Space which is inserted between cells |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gtk.CellAreaBox(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Gtk.CellAreaBox
renders cell renderers into a row or a column depending on itsGtk.Orientation
.Gtk.CellAreaBox
uses a notion of packing. Packing refers to adding cell renderers with reference to a particular position in aGtk.CellAreaBox
. There are two reference positions: the start and the end of the box. When theGtk.CellAreaBox
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
Gtk.CellRenderers
rendered in adjacent rows can be configured by configuring theGtk.CellAreaBox
align child cell property withGtk.CellArea.cell_set_property
() or by specifying the “align” argument toGtk.CellAreaBox.pack_start
() andGtk.CellAreaBox.pack_end
().- classmethod new()[source]¶
- Returns:
a newly created
Gtk.CellAreaBox
- Return type:
Creates a new
Gtk.CellAreaBox
.New in version 3.0.
- get_spacing()[source]¶
- Returns:
the space added between cell renderers in self.
- Return type:
Gets the spacing added between cell renderers.
New in version 3.0.
- pack_end(renderer, expand, align, fixed)[source]¶
- Parameters:
renderer (
Gtk.CellRenderer
) – theGtk.CellRenderer
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
Gtk.CellRenderer
packed with reference to the end of self.New in version 3.0.
- pack_start(renderer, expand, align, fixed)[source]¶
- Parameters:
renderer (
Gtk.CellRenderer
) – theGtk.CellRenderer
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
Gtk.CellRenderer
packed with reference to the start of self.New in version 3.0.
- set_spacing(spacing)[source]¶
- Parameters:
spacing (
int
) – the space to add betweenGtk.CellRenderers
Sets the spacing to add between cell renderers in self.
New in version 3.0.
Property Details¶
- Gtk.CellAreaBox.props.spacing¶
- Name:
spacing
- Type:
- Default Value:
0
- Flags:
The amount of space to reserve between cells.
New in version 3.0.