Class CellAreaBox

All Implemented Interfaces:
Buildable, CellLayout, Orientable, Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class CellAreaBox extends CellArea implements Buildable, CellLayout, Orientable
Deprecated.
List views use widgets for displaying their contents

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 Orientation.VERTICAL orientation, the start is defined as the top of the box and the end is defined as the bottom. In the Orientation.HORIZONTAL orientation start is defined as the left side and the end is defined as the right side.

Alignments of GtkCellRenderers 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().

  • Constructor Details

    • CellAreaBox

      public CellAreaBox(MemorySegment address)
      Deprecated.
      Create a CellAreaBox instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • CellAreaBox

      public CellAreaBox()
      Deprecated.
      Create a new CellAreaBox.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the CellAreaBox class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected CellAreaBox asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class CellArea
      Returns:
      the instance as if it were its parent type
    • getSpacing

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

      @Deprecated public void packEnd(CellRenderer renderer, boolean expand, boolean align, boolean fixed)
      Deprecated.

      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

      @Deprecated public void packStart(CellRenderer renderer, boolean expand, boolean align, boolean fixed)
      Deprecated.

      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

      @Deprecated public void setSpacing(int spacing)
      Deprecated.
      Sets the spacing to add between cell renderers in box.
      Parameters:
      spacing - the space to add between GtkCellRenderers
    • builder

      public static CellAreaBox.Builder<? extends CellAreaBox.Builder> builder()
      Deprecated.
      A CellAreaBox.Builder object constructs a CellAreaBox with the specified properties. Use the various set...() methods to set properties, and finish construction with CellAreaBox.Builder.build().
      Returns:
      the builder object