Class CellAreaBox

All Implemented Interfaces:
PointerInterface

public class CellAreaBox extends CellArea
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`.

GtkCellAreaBox 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_cell_area_cell_set_property() or by specifying the "align"
argument to gtk_cell_area_box_pack_start() and gtk_cell_area_box_pack_end().

https://docs.gtk.org/gtk4/class.CellAreaBox.html

  • Constructor Details

    • CellAreaBox

      public CellAreaBox(PointerContainer pointer)
    • CellAreaBox

      public CellAreaBox()
      Creates a new `GtkCellAreaBox`.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getSpacing

      public int getSpacing()
      Gets the spacing added between cell renderers.
      Returns:
      the space added between cell renderers in @box.
    • packEnd

      public void packEnd(@Nonnull CellRenderer renderer, boolean expand, boolean align, boolean fixed)
      Adds @renderer to @box, packed with reference to the end of @box.

      The @renderer is packed after (away from end of) any other
      `GtkCellRenderer` packed with reference to the end of @box.
      Parameters:
      renderer - the `GtkCellRenderer` 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
    • packStart

      public void packStart(@Nonnull CellRenderer renderer, boolean expand, boolean align, boolean fixed)
      Adds @renderer to @box, packed with reference to the start of @box.

      The @renderer is packed after any other `GtkCellRenderer` packed
      with reference to the start of @box.
      Parameters:
      renderer - the `GtkCellRenderer` 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
    • setSpacing

      public void setSpacing(int spacing)
      Sets the spacing to add between cell renderers in @box.
      Parameters:
      spacing - the space to add between `GtkCellRenderer`s
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Overrides:
      asBuildable in class CellArea
      Returns:
      Buildable
    • asCellLayout

      public CellLayout asCellLayout()
      Implements interface CellLayout. Call this to get access to interface functions.
      Overrides:
      asCellLayout in class CellArea
      Returns:
      CellLayout
    • asOrientable

      public Orientable asOrientable()
      Implements interface Orientable. Call this to get access to interface functions.
      Returns:
      Orientable
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()