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.
<group>Layout containers</group> <gtkada_demo>create_constraints.adb</gtkada_demo>
function "+"
(Widget : access Gtk_Constraint_Guide_Record'Class)
return Gtk.Constraint_Target.Gtk_Constraint_Target
function "-"
(Interf : Gtk.Constraint_Target.Gtk_Constraint_Target)
return Gtk_Constraint_Guide
procedure Get_Max_Size
(Self : not null access Gtk_Constraint_Guide_Record;
Width : out Glib.Gint;
Height : out Glib.Gint)
Gets the maximum size of Guide.
return location for the maximum width
return location for the maximum height
procedure Get_Min_Size
(Self : not null access Gtk_Constraint_Guide_Record;
Width : out Glib.Gint;
Height : out Glib.Gint)
Gets the minimum size of Guide.
return location for the minimum width
return location for the minimum height
function Get_Name
(Self : not null access Gtk_Constraint_Guide_Record)
return UTF8_String
Retrieves the name set using Gtk.Constraint_Guide.Set_Name.
the name of the guide
procedure Get_Nat_Size
(Self : not null access Gtk_Constraint_Guide_Record;
Width : out Glib.Gint;
Height : out Glib.Gint)
Gets the natural size of Guide.
return location for the natural width
return location for the natural height
function Get_Strength
(Self : not null access Gtk_Constraint_Guide_Record)
return Gtk.Enums.Gtk_Constraint_Strength
Retrieves the strength set using Gtk.Constraint_Guide.Set_Strength.
the strength of the constraint on the natural size
function Get_Type return Glib.GType
type Gtk_Constraint_Guide is access all Gtk_Constraint_Guide_Record'Class;
function Gtk_Constraint_Guide_New return Gtk_Constraint_Guide
Creates a new GtkConstraintGuide object.
type Gtk_Constraint_Guide_Record is new GObject_Record with null record;
procedure Gtk_New (Self : out Gtk_Constraint_Guide)
Creates a new GtkConstraintGuide object. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
package Implements_Gtk_Constraint_Target is new Glib.Types.Implements
(Gtk.Constraint_Target.Gtk_Constraint_Target, Gtk_Constraint_Guide_Record, Gtk_Constraint_Guide);
procedure Initialize
(Self : not null access Gtk_Constraint_Guide_Record'Class)
Creates a new GtkConstraintGuide object. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
Max_Height_Property : constant Glib.Properties.Property_Int;
The maximum height of the guide.
Max_Width_Property : constant Glib.Properties.Property_Int;
The maximum width of the guide.
Min_Height_Property : constant Glib.Properties.Property_Int;
The minimum height of the guide.
Min_Width_Property : constant Glib.Properties.Property_Int;
The minimum width of the guide.
Name_Property : constant Glib.Properties.Property_String;
A name that identifies the GtkConstraintGuide, for debugging.
Nat_Height_Property : constant Glib.Properties.Property_Int;
The preferred, or natural, height of the guide.
Nat_Width_Property : constant Glib.Properties.Property_Int;
The preferred, or natural, width of the guide.
procedure Set_Max_Size
(Self : not null access Gtk_Constraint_Guide_Record;
Width : Glib.Gint;
Height : Glib.Gint)
Sets the maximum size of Guide. If Guide is attached to a GtkConstraintLayout, the constraints will be updated to reflect the new size.
the new maximum width, or -1 to not change it
the new maximum height, or -1 to not change it
procedure Set_Min_Size
(Self : not null access Gtk_Constraint_Guide_Record;
Width : Glib.Gint;
Height : Glib.Gint)
Sets the minimum size of Guide. If Guide is attached to a GtkConstraintLayout, the constraints will be updated to reflect the new size.
the new minimum width, or -1 to not change it
the new minimum height, or -1 to not change it
procedure Set_Name
(Self : not null access Gtk_Constraint_Guide_Record;
Name : UTF8_String := "")
Sets a name for the given GtkConstraintGuide. The name is useful for debugging purposes.
a name for the Guide
procedure Set_Nat_Size
(Self : not null access Gtk_Constraint_Guide_Record;
Width : Glib.Gint;
Height : Glib.Gint)
Sets the natural size of Guide. If Guide is attached to a GtkConstraintLayout, the constraints will be updated to reflect the new size.
the new natural width, or -1 to not change it
the new natural height, or -1 to not change it
procedure Set_Strength
(Self : not null access Gtk_Constraint_Guide_Record;
Strength : Gtk.Enums.Gtk_Constraint_Strength)
Sets the strength of the constraint on the natural size of the given GtkConstraintGuide.
the strength of the constraint
Strength_Property : constant Gtk.Enums.Property_Gtk_Constraint_Strength;
The GtkConstraintStrength to be used for the constraint on the natural size of the guide.