Class OverlayLayoutChild.Builder<B extends OverlayLayoutChild.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
OverlayLayoutChild

public static class OverlayLayoutChild.Builder<B extends OverlayLayoutChild.Builder<B>> extends LayoutChild.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public OverlayLayoutChild build()
      Finish building the OverlayLayoutChild object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to OverlayLayoutChild.
      Overrides:
      build in class LayoutChild.Builder<B extends OverlayLayoutChild.Builder<B>>
      Returns:
      a new instance of OverlayLayoutChild with the properties that were set in the Builder object.
    • setClipOverlay

      public B setClipOverlay(boolean clipOverlay)
      Whether the child should be clipped to fit the parent's size.
      Parameters:
      clipOverlay - the value for the clip-overlay property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setMeasure

      public B setMeasure(boolean measure)
      Whether the child size should contribute to the GtkOverlayLayout's measurement.
      Parameters:
      measure - the value for the measure property
      Returns:
      the Builder instance is returned, to allow method chaining