Class: Gtk::Constraint
- Inherits:
-
Object
- Object
- Gtk::Constraint
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#constant ⇒ Float
The constant value to be added to the [propertyGtk.Constraint:source-attribute].
-
#constant=(constant) ⇒ Float
The constant value to be added to the [propertyGtk.Constraint:source-attribute].
-
#initialize(target, target_attribute, relation, constant, strength) ⇒ Gtk::Constraint
constructor
Creates a new constraint representing a relation between a layout attribute on a target and a constant value.
-
#is_attached ⇒ Boolean
Checks whether the constraint is attached to a [classGtk.ConstraintLayout], and it is contributing to the layout.
-
#is_constant ⇒ Boolean
Checks whether the constraint describes a relation between an attribute on the [propertyGtk.Constraint:target] and a constant value.
-
#is_required ⇒ Boolean
Checks whether the constraint is a required relation for solving the constraint layout.
-
#multiplier ⇒ Float
The multiplication factor to be applied to the [propertyGtk.Constraint:source-attribute].
-
#multiplier=(multiplier) ⇒ Float
The multiplication factor to be applied to the [propertyGtk.Constraint:source-attribute].
-
#relation ⇒ Gtk::ConstraintRelation
The order relation between the terms of the constraint.
-
#relation=(relation) ⇒ Gtk::ConstraintRelation
The order relation between the terms of the constraint.
-
#source ⇒ Gtk::ConstraintTarget
The source of the constraint.
-
#source=(source) ⇒ Gtk::ConstraintTarget
The source of the constraint.
-
#source_attribute ⇒ Gtk::ConstraintAttribute
The attribute of the [propertyGtk.Constraint:source] read by the constraint.
-
#source_attribute=(source_attribute) ⇒ Gtk::ConstraintAttribute
The attribute of the [propertyGtk.Constraint:source] read by the constraint.
-
#strength ⇒ Integer
The strength of the constraint.
-
#strength=(strength) ⇒ Integer
The strength of the constraint.
-
#target ⇒ Gtk::ConstraintTarget
The target of the constraint.
-
#target=(target) ⇒ Gtk::ConstraintTarget
The target of the constraint.
-
#target_attribute ⇒ Gtk::ConstraintAttribute
The attribute of the [propertyGtk.Constraint:target] set by the constraint.
-
#target_attribute=(target_attribute) ⇒ Gtk::ConstraintAttribute
The attribute of the [propertyGtk.Constraint:target] set by the constraint.
Constructor Details
#initialize(target, target_attribute, relation, constant, strength) ⇒ Gtk::Constraint
Creates a new constraint representing a relation between a layout attribute on a target and a constant value.
Instance Method Details
#constant ⇒ Float
The constant value to be added to the [propertyGtk.Constraint:source-attribute].
#constant=(constant) ⇒ Float
The constant value to be added to the [propertyGtk.Constraint:source-attribute].
#is_attached ⇒ Boolean
Checks whether the constraint is attached to a [classGtk.ConstraintLayout], and it is contributing to the layout.
#is_constant ⇒ Boolean
Checks whether the constraint describes a relation between an attribute on the [propertyGtk.Constraint:target] and a constant value.
#is_required ⇒ Boolean
Checks whether the constraint is a required relation for solving the constraint layout.
#multiplier ⇒ Float
The multiplication factor to be applied to the [propertyGtk.Constraint:source-attribute].
#multiplier=(multiplier) ⇒ Float
The multiplication factor to be applied to the [propertyGtk.Constraint:source-attribute].
#relation ⇒ Gtk::ConstraintRelation
The order relation between the terms of the constraint.
#relation=(relation) ⇒ Gtk::ConstraintRelation
The order relation between the terms of the constraint.
#source ⇒ Gtk::ConstraintTarget
The source of the constraint.
The constraint will set the [propertyGtk.Constraint:target-attribute] property of the target using the [propertyGtk.Constraint:source-attribute] property of the source.
#source=(source) ⇒ Gtk::ConstraintTarget
The source of the constraint.
The constraint will set the [propertyGtk.Constraint:target-attribute] property of the target using the [propertyGtk.Constraint:source-attribute] property of the source.
#source_attribute ⇒ Gtk::ConstraintAttribute
The attribute of the [propertyGtk.Constraint:source] read by the constraint.
#source_attribute=(source_attribute) ⇒ Gtk::ConstraintAttribute
The attribute of the [propertyGtk.Constraint:source] read by the constraint.
#strength ⇒ Integer
The strength of the constraint.
The strength can be expressed either using one of the symbolic values of the [enumGtk.ConstraintStrength] enumeration, or any positive integer value.
#strength=(strength) ⇒ Integer
The strength of the constraint.
The strength can be expressed either using one of the symbolic values of the [enumGtk.ConstraintStrength] enumeration, or any positive integer value.
#target ⇒ Gtk::ConstraintTarget
The target of the constraint.
The constraint will set the [propertyGtk.Constraint:target-attribute] property of the target using the [propertyGtk.Constraint:source-attribute] property of the source widget.
#target=(target) ⇒ Gtk::ConstraintTarget
The target of the constraint.
The constraint will set the [propertyGtk.Constraint:target-attribute] property of the target using the [propertyGtk.Constraint:source-attribute] property of the source widget.
#target_attribute ⇒ Gtk::ConstraintAttribute
The attribute of the [propertyGtk.Constraint:target] set by the constraint.
#target_attribute=(target_attribute) ⇒ Gtk::ConstraintAttribute
The attribute of the [propertyGtk.Constraint:target] set by the constraint.