class

Layout::Primitive

Inherits Reference < Object

A constrainable value of measurement.

Constructors

new(name)
Source

Instance methods

*(*args, **options)
Source
*(*args, **options, &)
Source
+(*args, **options)
Source
+(*args, **options, &)
Source
-(*args, **options)
Source
-(*args, **options, &)
Source
/(*args, **options)
Source
/(*args, **options, &)
Source
constraints

The constraints on this primitive. This is used internally to load the constraints into the constraint solver.

Source
eq(primitive : Layout::Primitive, strength)
Source
eq(expression, strength) : Kiwi::Constraint
Source
eq(expression) : Kiwi::Constraint
Source
gte(primitive : Layout::Primitive, strength)
Source
gte(expression, strength) : Kiwi::Constraint
Source
gte(expression) : Kiwi::Constraint
Source
lte(primitive : Layout::Primitive, strength)
Source
lte(expression, strength) : Kiwi::Constraint
Source
lte(expression) : Kiwi::Constraint
Source
value

The final calculated value of the primitive. This is the value you'll use after solving the constraints.

Source
variable

Returns the internal constraint variable. This is used by the constraint solver to calculate the final value.

Source