Package org.gnome.gtk
Class ConstraintGuide.Builder<B extends ConstraintGuide.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.ConstraintGuide.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
ConstraintGuide
public static class ConstraintGuide.Builder<B extends ConstraintGuide.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theConstraintGuide
object.setMaxHeight
(int maxHeight) The maximum height of the guide.setMaxWidth
(int maxWidth) The maximum width of the guide.setMinHeight
(int minHeight) The minimum height of the guide.setMinWidth
(int minWidth) The minimum width of the guide.A name that identifies theGtkConstraintGuide
, for debugging.setNatHeight
(int natHeight) The preferred, or natural, height of the guide.setNatWidth
(int natWidth) The preferred, or natural, width of the guide.setStrength
(ConstraintStrength strength) TheGtkConstraintStrength
to be used for the constraint on the natural size of the guide.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 theConstraintGuide
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 toConstraintGuide
.- Overrides:
build
in classGObject.Builder<B extends ConstraintGuide.Builder<B>>
- Returns:
- a new instance of
ConstraintGuide
with the properties that were set in the Builder object.
-
setMaxHeight
The maximum height of the guide.- Parameters:
maxHeight
- the value for themax-height
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMaxWidth
The maximum width of the guide.- Parameters:
maxWidth
- the value for themax-width
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMinHeight
The minimum height of the guide.- Parameters:
minHeight
- the value for themin-height
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMinWidth
The minimum width of the guide.- Parameters:
minWidth
- the value for themin-width
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setName
-
setNatHeight
The preferred, or natural, height of the guide.- Parameters:
natHeight
- the value for thenat-height
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setNatWidth
The preferred, or natural, width of the guide.- Parameters:
natWidth
- the value for thenat-width
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setStrength
TheGtkConstraintStrength
to be used for the constraint on the natural size of the guide.- Parameters:
strength
- the value for thestrength
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-