Basics
Guides
API Reference
Basics
Guides
API Reference
[18:7] extends: object
An invisible layout element in a GtkConstraintLayout. The
GtkConstraintLayout treats guides like widgets. They can be used as the
source or target of a GtkConstraint. 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 GtkWidget, a GtkConstraintGuide will not be drawn.
GtkConstraintGuide (Handle = null)
Creates a new
GtkConstraintGuideobject.
Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
GObject.
A GObject object.asConstraintTarget ()
Wraps this handle as
GtkConstraintTarget.
A GtkConstraintTarget object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setMaxheight (int Value)
The maximum height of the guide.
Value is the new property value.None.setMaxwidth (int Value)
The maximum width of the guide.
Value is the new property value.None.setMinheight (int Value)
The minimum height of the guide.
Value is the new property value.None.setMinwidth (int Value)
The minimum width of the guide.
Value is the new property value.None.setName (string Value)
A name that identifies the
GtkConstraintGuide, for debugging.
Value is the new property value.None.setNatheight (int Value)
The preferred, or natural, height of the guide.
Value is the new property value.None.setNatwidth (int Value)
The preferred, or natural, width of the guide.
Value is the new property value.None.setStrength (string Value)
The
GtkConstraintStrengthto be used for the constraint on the natural size of the guide.
Value is the new property value.None.get_max_size ()
Gets the maximum size of @guide.
width is return location for the maximum width.height is return location for the maximum height.None.get_min_size ()
Gets the minimum size of @guide.
width is return location for the minimum width.height is return location for the minimum height.None.get_name ()
Retrieves the name set using gtk_constraint_guide_set_name().
the name of the guide.get_nat_size ()
Gets the natural size of @guide.
width is return location for the natural width.height is return location for the natural height.None.get_strength ()
Retrieves the strength set using gtk_constraint_guide_set_strength().
the strength of the constraint on the natural size.set_max_size (int width, int height)
Sets the maximum size of @guide. If @guide is attached to a
GtkConstraintLayout, the constraints will be updated to reflect the new size.
width is the new maximum width, or -1 to not change it.height is the new maximum height, or -1 to not change it.None.set_min_size (int width, int height)
Sets the minimum size of @guide. If @guide is attached to a
GtkConstraintLayout, the constraints will be updated to reflect the new size.
width is the new minimum width, or -1 to not change it.height is the new minimum height, or -1 to not change it.None.set_name (string name)
Sets a name for the given
GtkConstraintGuide. The name is useful for debugging purposes.
name is a name for the @guide.None.set_nat_size (int width, int height)
Sets the natural size of @guide. If @guide is attached to a
GtkConstraintLayout, the constraints will be updated to reflect the new size.
width is the new natural width, or -1 to not change it.height is the new natural height, or -1 to not change it.None.set_strength (string strength)
Sets the strength of the constraint on the natural size of the given
GtkConstraintGuide.
strength is the strength of the constraint.None.[377:14] static extends: object
Generated metadata helpers for ConstraintGuide class surfaces.
properties ()
Returns property metadata for
ConstraintGuide.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.