package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Constraint/index.html
Module Wrappers.Constraint
type t = [ `constraint_ | `object_ ] Gobject.objval new_ :
[ `constraint_target ] Gobject.obj option ->
Gtk_enums.constraintattribute ->
Gtk_enums.constraintrelation ->
[ `constraint_target ] Gobject.obj option ->
Gtk_enums.constraintattribute ->
float ->
float ->
int ->
tCreate a new Constraint
val new_constant :
[ `constraint_target ] Gobject.obj option ->
Gtk_enums.constraintattribute ->
Gtk_enums.constraintrelation ->
float ->
int ->
tCreate a new Constraint
val is_required : t -> boolChecks whether the constraint is a required relation for solving the constraint layout.
val is_constant : t -> boolChecks whether the constraint describes a relation between an attribute on the property@Gtk.Constraint:target and a constant value.
val is_attached : t -> boolChecks whether the constraint is attached to a class@Gtk.ConstraintLayout, and it is contributing to the layout.
val get_target_attribute : t -> Gtk_enums.constraintattributeRetrieves the attribute of the target to be set by the constraint.
val get_target : t -> [ `constraint_target ] Gobject.obj optionRetrieves the iface@Gtk.ConstraintTarget used as the target for the constraint.
If the targe is set to `NULL` at creation, the constraint will use the widget using the class@Gtk.ConstraintLayout as the target.
val get_strength : t -> intRetrieves the strength of the constraint.
val get_source_attribute : t -> Gtk_enums.constraintattributeRetrieves the attribute of the source to be read by the constraint.
val get_source : t -> [ `constraint_target ] Gobject.obj optionRetrieves the iface@Gtk.ConstraintTarget used as the source for the constraint.
If the source is set to `NULL` at creation, the constraint will use the widget using the class@Gtk.ConstraintLayout as the source.
val get_relation : t -> Gtk_enums.constraintrelationThe order relation between the terms of the constraint.
val get_multiplier : t -> floatRetrieves the multiplication factor applied to the source attribute's value.
val get_constant : t -> floatRetrieves the constant factor added to the source attributes' value.