Package org.gnome.gtk
Class OverlayLayoutChild.Builder<B extends OverlayLayoutChild.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.LayoutChild.Builder<B>
org.gnome.gtk.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theOverlayLayoutChild
object.setClipOverlay
(boolean clipOverlay) Whether the child should be clipped to fit the parent's size.setMeasure
(boolean measure) Whether the child size should contribute to theGtkOverlayLayout
's measurement.Methods inherited from class org.gnome.gtk.LayoutChild.Builder
setChildWidget, setLayoutManager
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theOverlayLayoutChild
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toOverlayLayoutChild
.- Overrides:
build
in classLayoutChild.Builder<B extends OverlayLayoutChild.Builder<B>>
- Returns:
- a new instance of
OverlayLayoutChild
with the properties that were set in the Builder object.
-
setClipOverlay
Whether the child should be clipped to fit the parent's size.- Parameters:
clipOverlay
- the value for theclip-overlay
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMeasure
Whether the child size should contribute to theGtkOverlayLayout
's measurement.- Parameters:
measure
- the value for themeasure
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-