About all my projects
Gnome::Gtk4::CellAreaBox

Gnome::Gtk4::CellAreaBox

Description

A cell area that renders GtkCellRenderers into a row or a column

The Gnome::Gtk4::CellAreaBox renders cell renderers into a row or a column depending on its enumeration GtkOrientation defined in Gnome::Gtk4::T-enums.

GtkCellAreaBox uses a notion of packing. Packing refers to adding cell renderers with reference to a particular position in a Gnome::Gtk4::CellAreaBox. There are two reference positions: the start and the end of the box. When the Gnome::Gtk4::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 Gnome::Gtk4::CellRenderers rendered in adjacent rows can be configured by configuring the Gnome::Gtk4::CellAreaBox align child cell property with gtk_cell_area_cell_set_property() or by specifying the "align" argument to .pack-start() and .pack-end().

Class initialization

Note: The native version of this class is deprecated in gtk4-lib() since version 4.10

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

new-cellareabox

Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10

Creates a new Gnome::Gtk4::CellAreaBox.

method new-cellareabox ( --> Gnome::Gtk4::CellAreaBox \)

Methods

get-spacing

Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10

Gets the spacing added between cell renderers.

method get-spacing (--> Int )

Return value; the space added between cell renderers in $box..

pack-end

Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10

Adds $renderer to $box, packed with reference to the end of $box.

The $renderer is packed after (away from end of) any other Gnome::Gtk4::CellRenderer packed with reference to the end of $box.

method pack-end ( N-Object() $renderer, Bool() $expand, Bool() $align, Bool() $fixed )
  • $renderer; the Gnome::Gtk4::CellRenderer to add.

  • $expand; whether $renderer should receive extra space when the area receives more than its natural size.

  • $align; whether $renderer should be aligned in adjacent rows.

  • $fixed; whether $renderer should have the same size in all rows.

pack-start

Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10

Adds $renderer to $box, packed with reference to the start of $box.

The $renderer is packed after any other Gnome::Gtk4::CellRenderer packed with reference to the start of $box.

method pack-start ( N-Object() $renderer, Bool() $expand, Bool() $align, Bool() $fixed )
  • $renderer; the Gnome::Gtk4::CellRenderer to add.

  • $expand; whether $renderer should receive extra space when the area receives more than its natural size.

  • $align; whether $renderer should be aligned in adjacent rows.

  • $fixed; whether $renderer should have the same size in all rows.

set-spacing

Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10

Sets the spacing to add between cell renderers in $box.

method set-spacing ( Int() $spacing )
  • $spacing; the space to add between Gnome::Gtk4::CellRenderers.