API Reference / @gtkx/components / ConstraintProps
Type Alias: ConstraintProps
ConstraintProps =
object
Defined in: constraint-layout-apply.d.ts:6
Describes one constraint added by <ConstraintLayout.Constraint>, relating a target widget attribute to a source attribute of another widget or guide.
Properties
constant?
optionalconstant?:number
Defined in: constraint-layout-apply.d.ts:18
Constant offset added to the relation (defaults to 0).
multiplier?
optionalmultiplier?:number
Defined in: constraint-layout-apply.d.ts:16
Factor applied to the source attribute (defaults to 1).
relation?
optionalrelation?:Gtk.ConstraintRelation
Defined in: constraint-layout-apply.d.ts:11
Relation between the target and source attributes (defaults to equality).
source?
optionalsource?:string
Defined in: constraint-layout-apply.d.ts:13
Name of the source widget or guide. Use "super" or omit for a constant constraint.
sourceAttribute?
optionalsourceAttribute?:Gtk.ConstraintAttribute
Defined in: constraint-layout-apply.d.ts:14
strength?
optionalstrength?:number
Defined in: constraint-layout-apply.d.ts:20
Constraint strength, higher values winning conflicts (defaults to required).
target?
optionaltarget?:string
Defined in: constraint-layout-apply.d.ts:8
Name of the target widget or guide. Use "super" or omit to reference the layout's own widget.
targetAttribute
targetAttribute:
Gtk.ConstraintAttribute
Defined in: constraint-layout-apply.d.ts:9