Gtk.CellAreaBox

g GObject.GInterface GObject.GInterface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.CellLayout Gtk.CellLayout GObject.GInterface->Gtk.CellLayout Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.CellArea Gtk.CellArea GObject.InitiallyUnowned->Gtk.CellArea GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.CellArea Gtk.CellAreaBox Gtk.CellAreaBox Gtk.CellArea->Gtk.CellAreaBox Gtk.CellLayout->Gtk.CellArea Gtk.Orientable->Gtk.CellAreaBox

Subclasses:

None

Methods

Inherited:

Gtk.CellArea (42), GObject.Object (37), Gtk.Buildable (1), Gtk.CellLayout (9), Gtk.Orientable (2)

Structs:

Gtk.CellAreaClass (3), GObject.ObjectClass (5)

class

new ()

get_spacing ()

pack_end (renderer, expand, align, fixed)

pack_start (renderer, expand, align, fixed)

set_spacing (spacing)

Virtual Methods

Inherited:

Gtk.CellArea (19), GObject.Object (7), Gtk.Buildable (9), Gtk.CellLayout (9)

Properties

Inherited:

Gtk.CellArea (3), Gtk.Orientable (1)

Name

Type

Flags

Short Description

spacing

int

r/w/en

Signals

Inherited:

Gtk.CellArea (4), GObject.Object (1)

Fields

Inherited:

Gtk.CellArea (4), GObject.Object (1)

Class Details

class Gtk.CellAreaBox(**kwargs)
Bases:

Gtk.CellArea, Gtk.Orientable

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 its GtkOrientation.

Gtk.CellAreaBox uses a notion of packing. Packing refers to adding cell renderers with reference to a particular position in a GtkCellAreaBox. There are two reference positions: the start and the end of the box. When the GtkCellAreaBox 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 GtkCellRenderer``s rendered in adjacent rows can be configured by configuring the ``GtkCellAreaBox 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().

Deprecated since version 4.10: List views use widgets for displaying their contents

classmethod new()[source]
Returns:

a newly created GtkCellAreaBox

Return type:

Gtk.CellArea

Creates a new GtkCellAreaBox.

Deprecated since version 4.10.

get_spacing()[source]
Returns:

the space added between cell renderers in self.

Return type:

int

Gets the spacing added between cell renderers.

Deprecated since version 4.10.

pack_end(renderer, expand, align, fixed)[source]
Parameters:
  • renderer (Gtk.CellRenderer) – the GtkCellRenderer to add

  • expand (bool) – whether renderer should receive extra space when the area receives more than its natural size

  • align (bool) – whether renderer should be aligned in adjacent rows

  • fixed (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) – the GtkCellRenderer to add

  • expand (bool) – whether renderer should receive extra space when the area receives more than its natural size

  • align (bool) – whether renderer should be aligned in adjacent rows

  • fixed (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.

set_spacing(spacing)[source]
Parameters:

spacing (int) – the space to add between ``GtkCellRenderer``s

Sets the spacing to add between cell renderers in self.

Deprecated since version 4.10.

Property Details

Gtk.CellAreaBox.props.spacing
Name:

spacing

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The amount of space to reserve between cells.