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
GType _gType() @property
ConstraintGuide self()Returns `this`, for use in `with` statements.
ConstraintGuideGidBuilder builder()Get builder for [gtk.constraint_guide.ConstraintGuide] Returns: New builder object
int maxHeight() @propertyGet `maxHeight` property. Returns: The maximum height of the guide.
void maxHeight(int propval) @propertySet `maxHeight` property. Params: propval = The maximum height of the guide.
int maxWidth() @propertyGet `maxWidth` property. Returns: The maximum width of the guide.
void maxWidth(int propval) @propertySet `maxWidth` property. Params: propval = The maximum width of the guide.
int minHeight() @propertyGet `minHeight` property. Returns: The minimum height of the guide.
void minHeight(int propval) @propertySet `minHeight` property. Params: propval = The minimum height of the guide.
int minWidth() @propertyGet `minWidth` property. Returns: The minimum width 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 guide
void 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 size
void 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].
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.constraint_guide.ConstraintGuide] object. Returns: a new [gtk.constraint_guide.ConstraintGuide] object.

Fluent builder implementation template for gtk.constraint_guide.ConstraintGuide

Methods
T maxHeight(int propval)Set `maxHeight` property. Params: propval = The maximum height of the guide. Returns: Builder instance for fluent chaining
T maxWidth(int propval)Set `maxWidth` property. Params: propval = The maximum width of the guide. Returns: Builder instance for fluent chaining
T minHeight(int propval)Set `minHeight` property. Params: propval = The minimum height of the guide. Returns: Builder instance for fluent chaining
T minWidth(int propval)Set `minWidth` property. Params: propval = The minimum width of the guide. Returns: Builder instance for fluent chaining
T name(string propval)Set `name` property. Params: propval = A name that identifies the [gtk.constraint_guide.ConstraintGuide], for debugging. Returns: Builder instance for fluent chaining
T natHeight(int propval)Set `natHeight` property. Params: propval = The preferred, or natural, height of the guide. Returns: Builder instance for fluent chaining
T natWidth(int propval)Set `natWidth` property. Params: propval = The preferred, or natural, width of the guide. Returns: Builder instance for fluent chaining
T 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 chaining