Skip to content

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?

optional constant?: number

Defined in: constraint-layout-apply.d.ts:18

Constant offset added to the relation (defaults to 0).


multiplier?

optional multiplier?: number

Defined in: constraint-layout-apply.d.ts:16

Factor applied to the source attribute (defaults to 1).


relation?

optional relation?: Gtk.ConstraintRelation

Defined in: constraint-layout-apply.d.ts:11

Relation between the target and source attributes (defaults to equality).


source?

optional source?: 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?

optional sourceAttribute?: Gtk.ConstraintAttribute

Defined in: constraint-layout-apply.d.ts:14


strength?

optional strength?: number

Defined in: constraint-layout-apply.d.ts:20

Constraint strength, higher values winning conflicts (defaults to required).


target?

optional target?: 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

Released under the MPL-2.0 License.