gtk.constraint_guide
Module for [ConstraintGuide] class
Types 3
A [gtk.constraint_guide.ConstraintGuide] is an invisible layout element in a [gtk.constraint_layout.ConstraintLayout].
The [gtk.constraint_layout.ConstraintLayout] treats guides like widgets. They can be used as the source or target of a [gtk.constraint.Constraint].
Guides have a minimum, maximum and natural size. Depending on the constraints that are applied, they can act like a guideline that widgets can be aligned to, or like *flexible space*.
Unlike a [gtk.widget.Widget], a [gtk.constraint_guide.ConstraintGuide] will not be drawn.
Methods
ConstraintGuide self()Returns `this`, for use in `with` statements.ConstraintGuideGidBuilder builder()Get builder for [gtk.constraint_guide.ConstraintGuide] Returns: New builder objectvoid maxHeight(int propval) @propertySet `maxHeight` property. Params: propval = The maximum height of the guide.void maxWidth(int propval) @propertySet `maxWidth` property. Params: propval = The maximum width of the guide.void minHeight(int propval) @propertySet `minHeight` property. Params: propval = The minimum height of the guide.void minWidth(int propval) @propertySet `minWidth` property. Params: propval = The minimum width of the guide.string name() @propertyGet `name` property. Returns: A name that identifies the [gtk.constraint_guide.ConstraintGuide], for debugging.void name(string propval) @propertySet `name` property. Params: propval = A name that identifies the [gtk.constraint_guide.ConstraintGuide], for debugging.int natHeight() @propertyGet `natHeight` property. Returns: The preferred, or natural, height of the guide.void natHeight(int propval) @propertySet `natHeight` property. Params: propval = The preferred, or natural, height of the guide.int natWidth() @propertyGet `natWidth` property. Returns: The preferred, or natural, width of the guide.void natWidth(int propval) @propertySet `natWidth` property. Params: propval = The preferred, or natural, width of the guide.gtk.types.ConstraintStrength strength() @propertyGet `strength` property. Returns: The [gtk.types.ConstraintStrength] to be used for the constraint on the natural size of the guide.void strength(gtk.types.ConstraintStrength propval) @propertySet `strength` property. Params: propval = The [gtk.types.ConstraintStrength] to be used for the constraint on the natural size of the guide.void getMaxSize(out int width, out int height)Gets the maximum size of guide.void getMinSize(out int width, out int height)Gets the minimum size of guide.string getName()Retrieves the name set using [gtk.constraint_guide.ConstraintGuide.setName]. Returns: the name of the guidevoid getNatSize(out int width, out int height)Gets the natural size of guide.gtk.types.ConstraintStrength getStrength()Retrieves the strength set using [gtk.constraint_guide.ConstraintGuide.setStrength]. Returns: the strength of the constraint on the natural sizevoid setMaxSize(int width, int height)Sets the maximum size of guide.void setMinSize(int width, int height)Sets the minimum size of guide.void setName(string name = null)Sets a name for the given [gtk.constraint_guide.ConstraintGuide].void setNatSize(int width, int height)Sets the natural size of guide.void setStrength(gtk.types.ConstraintStrength strength)Sets the strength of the constraint on the natural size of the given [gtk.constraint_guide.ConstraintGuide].classConstraintGuideGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gtk.constraint_target.ConstraintTargetGidBuilderImpl!T
Methods
T maxHeight(int propval)Set `maxHeight` property. Params: propval = The maximum height of the guide. Returns: Builder instance for fluent chainingT maxWidth(int propval)Set `maxWidth` property. Params: propval = The maximum width of the guide. Returns: Builder instance for fluent chainingT minHeight(int propval)Set `minHeight` property. Params: propval = The minimum height of the guide. Returns: Builder instance for fluent chainingT minWidth(int propval)Set `minWidth` property. Params: propval = The minimum width of the guide. Returns: Builder instance for fluent chainingT name(string propval)Set `name` property. Params: propval = A name that identifies the [gtk.constraint_guide.ConstraintGuide], for debugging. Returns: Builder instance for fluent chainingT natHeight(int propval)Set `natHeight` property. Params: propval = The preferred, or natural, height of the guide. Returns: Builder instance for fluent chainingT natWidth(int propval)Set `natWidth` property. Params: propval = The preferred, or natural, width of the guide. Returns: Builder instance for fluent chainingT strength(gtk.types.ConstraintStrength propval)Set `strength` property. Params: propval = The [gtk.types.ConstraintStrength] to be used for the constraint on the natural size of the guide. Returns: Builder instance for fluent chainingFluent builder for [gtk.constraint_guide.ConstraintGuide]
Methods