Package: gtk

Class gtk:constraint

Superclasses

gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

constant
The constant property of type :double (Read / Write / Construct only)
The constant value to be added to the source-attribute property.
Default value: 0
multiplier
The multiplier property of type :double (Read / Write / Construct only)
The multiplication factor to be applied to the source-attribute property.
Default value: 1
relation
The relation property of type gtk:constraint-relation (Read / Write / Construct only)
The order relation between the terms of the constraint.
Default value: :eq
source
The source property of type gtk:constraint-target (Read / Write / Construct only)
The source of the constraint. The constraint will set the target-attribute property of the target using the source-attribute property of the source widget.
source-attribute
The source-attribute property of type gtk:constraint-attribute (Read / Write / Construct only)
The attribute of the source property read by the constraint.
Default value: :none
strength
The strength property of type :int (Read / Write / Construct only)
The strength of the constraint. The strength can be expressed either using one of the symbolic values of the gtk:constraint-strength enumeration, or any positive integer.
Allowed values: [0, 1001001000]
Default value: 1001001000
target
The target property of type gtk:constraint-target (Read / Write / Construct only)
The target of the constraint. The constraint will set the target-attribute property of the target using the source-attribute property of the source widget.
target-attribute
The target-attribute property of type gtk:constraint-attribute (Read / Write / Construct only)
The attribute of the target property set by the constraint.
Default value: :none

Details

The gtk:constraint class describes a constraint between an attribute on a widget and another attribute on another widget, expressed as a linear equation.

The typical equation for a constraint is:
target.target_attr = source.source_attr × multiplier + constant  
Each gtk:constraint object is part of a system that will be solved by a gtk:constraint-layout object in order to allocate and position each child widget.

The source and target widgets, as well as their attributes, of a gtk:constraint object are immutable after creation.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2023-9-2