Gtk.CellAreaBox
Gtk.CellAreaBox — A cell area that renders Gtk.CellRenderers into a row or a column
Object Hierarchy:
GObject
╰── GInitiallyUnowned
╰── Gtk.CellArea
╰── Gtk.CellAreaBox
Functions:
- new
() -> Gtk.CellArea
- pack_start
(self, renderer:Gtk.CellRenderer, expand:bool, align:bool, fixed:bool)
- pack_end
(self, renderer:Gtk.CellRenderer, expand:bool, align:bool, fixed:bool)
- get_spacing
(self) -> int
- set_spacing
(self, spacing:int)
Description:
The Gtk.CellAreaBox
renders cell renderers into a row or a column depending on its Gtk.Orientation
.
Gtk.CellAreaBox
uses a notion of packing. Packing refers to adding cell renderers with reference to a particular position in a Gtk.CellAreaBox
. There are two reference positions: the start and the end of the box.
When the Gtk.CellAreaBox
is oriented in the Gtk.Orientation.VERTICAL
orientation, the start is defined as the top of the box and the end is defined as the bottom. In the Gtk.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 the Gtk.CellAreaBox
align child cell property with Gtk.CellArea::cell_set_property()
or by specifying the "align" argument to Gtk.CellAreaBox::pack_start()
and Gtk.CellAreaBox::pack_end()
.
Function Details:
new()
new () -> Gtk.CellArea
Creates a new Gtk.CellAreaBox
.
Returns: a newly created Gtk.CellAreaBox
Since: 3.0
pack_start()
pack_start (self, renderer:Gtk.CellRenderer, expand:bool, align:bool, fixed:bool)
Adds renderer
to box
, packed with reference to the start of box
.
The renderer
is packed after any other Gtk.CellRenderer
packedwith reference to the start of box
.
- Since: 3.0
pack_end()
pack_end (self, renderer:Gtk.CellRenderer, expand:bool, align:bool, fixed:bool)
Adds renderer
to box
, packed with reference to the end of box
.
The renderer
is packed after (away from end of) any otherGtk.CellRenderer
packed with reference to the end of box
.
- Since: 3.0
get_spacing()
get_spacing (self) -> int
Gets the spacing added between cell renderers.
Returns: the space added between cell renderers in
box
.Since: 3.0
set_spacing()
set_spacing (self, spacing:int)
Sets the spacing to add between cell renderers in box
.
- Since: 3.0