ConstraintGuide
Object Hierarchy:
Gtk.ConstraintGuide
Gtk.ConstraintGuide
Gtk.ConstraintGuide
GLib.Object
GLib.Object
GLib.Object->Gtk.ConstraintGuide
Gtk.ConstraintTarget
Gtk.ConstraintTarget
Gtk.ConstraintTarget->Gtk.ConstraintGuide
Description:
[
CCode ( type_id =
"gtk_constraint_guide_get_type ()" ) ]
public class ConstraintGuide :
Object ,
ConstraintTarget
A `GtkConstraintGuide` is 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.
Content:
Properties:
public int max_height { get ; set ; }
The maximum height of the guide.
public int max_width { get ; set ; }
The maximum width of the guide.
public int min_height { get ; set ; }
The minimum height of the guide.
public int min_width { get ; set ; }
The minimum width of the guide.
public string name { get ; set ; }
A name that identifies the `GtkConstraintGuide`, for debugging.
public int nat_height { get ; set ; }
The preferred, or natural, height of the guide.
public int nat_width { get ; set ; }
The preferred, or natural, width of the guide.
public ConstraintStrength strength { get ; set ; }
The `GtkConstraintStrength` to be used for the constraint on the
natural size of the guide.
Creation methods:
Methods:
public void get_max_size (out int width, out int height)
Gets the maximum size of this .
public void get_min_size (out int width, out int height)
Gets the minimum size of this .
public unowned string ? get_name ()
public void get_nat_size (out int width, out int height)
Gets the natural size of this .
public ConstraintStrength get_strength ()
public void set_max_size (int width, int height)
Sets the maximum size of this .
public void set_min_size (int width, int height)
Sets the minimum size of this .
public void set_name (string ? name)
Sets a name for the given `GtkConstraintGuide`.
public void set_nat_size (int width, int height)
Sets the natural size of this .
public void set_strength (ConstraintStrength strength)
Sets the strength of the constraint on the natural size of the given
`GtkConstraintGuide`.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref