Class CenterLayout

All Implemented Interfaces:
PointerInterface

public class CenterLayout extends LayoutManager
`GtkCenterLayout` is a layout manager that manages up to three children.

The start widget is allocated at the start of the layout (left in
left-to-right locales and right in right-to-left ones), and the end
widget at the end.

The center widget is centered regarding the full width of the layout's.

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

  • Constructor Details

    • CenterLayout

      public CenterLayout(PointerContainer pointer)
    • CenterLayout

      public CenterLayout()
      Creates a new `GtkCenterLayout`.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getBaselinePosition

      public int getBaselinePosition()
      Returns the baseline position of the layout.
      Returns:
      The current baseline position of @self.
    • getCenterWidget

      public Widget getCenterWidget()
      Returns the center widget of the layout.
      Returns:
      the current center widget of @self
    • getEndWidget

      public Widget getEndWidget()
      Returns the end widget of the layout.
      Returns:
      the current end widget of @self
    • getOrientation

      public int getOrientation()
      Gets the current orienration of the layout manager.
      Returns:
      The current orientation of @self
    • getStartWidget

      public Widget getStartWidget()
      Returns the start widget fo the layout.
      Returns:
      The current start widget of @self
    • setBaselinePosition

      public void setBaselinePosition(int baseline_position)
      Sets the new baseline position of @self
      Parameters:
      baseline_position - the new baseline position
    • setCenterWidget

      public void setCenterWidget(@Nullable Widget widget)
      Sets the new center widget of @self.

      To remove the existing center widget, pass %NULL.
      Parameters:
      widget - the new center widget
    • setEndWidget

      public void setEndWidget(@Nullable Widget widget)
      Sets the new end widget of @self.

      To remove the existing center widget, pass %NULL.
      Parameters:
      widget - the new end widget
    • setOrientation

      public void setOrientation(int orientation)
      Sets the orientation of @self.
      Parameters:
      orientation - the new orientation
    • setStartWidget

      public void setStartWidget(@Nullable Widget widget)
      Sets the new start widget of @self.

      To remove the existing start widget, pass %NULL.
      Parameters:
      widget - the new start widget
    • 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()