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
ConstraintGuideGidBuilder builder() static nothrowGet builder for [gtk.constraint_guide.ConstraintGuide] Returns: New builder objectint maxHeight() @property nothrowGet `maxHeight` property. Returns: The maximum height of the guide.void maxHeight(int propval) @property nothrowSet `maxHeight` property. Params: propval = The maximum height of the guide.void maxWidth(int propval) @property nothrowSet `maxWidth` property. Params: propval = The maximum width of the guide.int minHeight() @property nothrowGet `minHeight` property. Returns: The minimum height of the guide.void minHeight(int propval) @property nothrowSet `minHeight` property. Params: propval = The minimum height of the guide.void minWidth(int propval) @property nothrowSet `minWidth` property. Params: propval = The minimum width of the guide.string name() @property nothrowGet `name` property. Returns: A name that identifies the [gtk.constraint_guide.ConstraintGuide], for debugging.void name(string propval) @property nothrowSet `name` property. Params: propval = A name that identifies the [gtk.constraint_guide.ConstraintGuide], for debugging.int natHeight() @property nothrowGet `natHeight` property. Returns: The preferred, or natural, height of the guide.void natHeight(int propval) @property nothrowSet `natHeight` property. Params: propval = The preferred, or natural, height of the guide.int natWidth() @property nothrowGet `natWidth` property. Returns: The preferred, or natural, width of the guide.void natWidth(int propval) @property nothrowSet `natWidth` property. Params: propval = The preferred, or natural, width of the guide.gtk.types.ConstraintStrength strength() @property nothrowGet `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) @property nothrowSet `strength` property. Params: propval = The [gtk.types.ConstraintStrength] to be used for the constraint on the natural size of the guide.string getName() nothrowRetrieves the name set using [gtk.constraint_guide.ConstraintGuide.setName]. Returns: the name of the guidegtk.types.ConstraintStrength getStrength() nothrowRetrieves the strength set using [gtk.constraint_guide.ConstraintGuide.setStrength]. Returns: the strength of the constraint on the natural sizevoid setName(string name = null) nothrowSets a name for the given [gtk.constraint_guide.ConstraintGuide].void setStrength(gtk.types.ConstraintStrength strength) nothrowSets 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
Fluent builder implementation template for gtk.constraint_guide.ConstraintGuide
Methods
T maxHeight(int propval) nothrowSet `maxHeight` property. Params: propval = The maximum height of the guide. Returns: Builder instance for fluent chainingT maxWidth(int propval) nothrowSet `maxWidth` property. Params: propval = The maximum width of the guide. Returns: Builder instance for fluent chainingT minHeight(int propval) nothrowSet `minHeight` property. Params: propval = The minimum height of the guide. Returns: Builder instance for fluent chainingT minWidth(int propval) nothrowSet `minWidth` property. Params: propval = The minimum width of the guide. Returns: Builder instance for fluent chainingT name(string propval) nothrowSet `name` property. Params: propval = A name that identifies the [gtk.constraint_guide.ConstraintGuide], for debugging. Returns: Builder instance for fluent chainingT natHeight(int propval) nothrowSet `natHeight` property. Params: propval = The preferred, or natural, height of the guide. Returns: Builder instance for fluent chainingT natWidth(int propval) nothrowSet `natWidth` property. Params: propval = The preferred, or natural, width of the guide. Returns: Builder instance for fluent chainingT strength(gtk.types.ConstraintStrength propval) nothrowSet `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