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 _getGType() static nothrow
GType _gType() @property nothrow
ConstraintGuide self() nothrowReturns `this`, for use in `with` statements.
ConstraintGuideGidBuilder builder() static nothrowGet builder for [gtk.constraint_guide.ConstraintGuide] Returns: New builder object
int 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.
int maxWidth() @property nothrowGet `maxWidth` property. Returns: The maximum width 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.
int minWidth() @property nothrowGet `minWidth` property. Returns: The minimum width 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.
void getMaxSize(out int width, out int height) nothrowGets the maximum size of guide.
void getMinSize(out int width, out int height) nothrowGets the minimum size of guide.
string getName() nothrowRetrieves the name set using [gtk.constraint_guide.ConstraintGuide.setName]. Returns: the name of the guide
void getNatSize(out int width, out int height) nothrowGets the natural size of guide.
gtk.types.ConstraintStrength getStrength() nothrowRetrieves 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) nothrowSets the maximum size of guide.
void setMinSize(int width, int height) nothrowSets the minimum size of guide.
void setName(string name = null) nothrowSets a name for the given [gtk.constraint_guide.ConstraintGuide].
void setNatSize(int width, int height) nothrowSets the natural size of guide.
void setStrength(gtk.types.ConstraintStrength strength) nothrowSets 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) nothrowSet `maxHeight` property. Params: propval = The maximum height of the guide. Returns: Builder instance for fluent chaining
T maxWidth(int propval) nothrowSet `maxWidth` property. Params: propval = The maximum width of the guide. Returns: Builder instance for fluent chaining
T minHeight(int propval) nothrowSet `minHeight` property. Params: propval = The minimum height of the guide. Returns: Builder instance for fluent chaining
T minWidth(int propval) nothrowSet `minWidth` property. Params: propval = The minimum width of the guide. Returns: Builder instance for fluent chaining
T name(string propval) nothrowSet `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) nothrowSet `natHeight` property. Params: propval = The preferred, or natural, height of the guide. Returns: Builder instance for fluent chaining
T natWidth(int propval) nothrowSet `natWidth` property. Params: propval = The preferred, or natural, width of the guide. Returns: Builder instance for fluent chaining
T 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 chaining
Methods
ConstraintGuide build() nothrowCreate object from builder. Returns: New object