class Layout::Primitive
- Layout::Primitive
- Reference
- Object
Overview
A constrainable value of measurement.
Defined in:
primitive.crConstructors
Instance Method Summary
- #*(primitive : Layout::Primitive)
- #*(*args, **options)
- #*(*args, **options, &)
- #+(primitive : Layout::Primitive)
- #+(*args, **options)
- #+(*args, **options, &)
- #-(primitive : Layout::Primitive)
- #-(*args, **options)
- #-(*args, **options, &)
- #/(*args, **options)
- #/(*args, **options, &)
-
#constraints : Array(Kiwi::Constraint)
The constraints on this primitive.
- #eq(primitive : Layout::Primitive, strength)
- #eq(expression, strength) : Kiwi::Constraint
- #eq(expression) : Kiwi::Constraint
- #gte(primitive : Layout::Primitive, strength)
- #gte(expression, strength) : Kiwi::Constraint
- #gte(expression) : Kiwi::Constraint
- #lte(primitive : Layout::Primitive, strength)
- #lte(expression, strength) : Kiwi::Constraint
- #lte(expression) : Kiwi::Constraint
-
#value
The final calculated value of the primitive.
-
#variable : Kiwi::Variable
Returns the internal constraint variable.
Constructor Detail
Instance Method Detail
def constraints : Array(Kiwi::Constraint)
#
The constraints on this primitive. This is used internally to load the constraints into the constraint solver.
def value
#
The final calculated value of the primitive. This is the value you'll use after solving the constraints.
def variable : Kiwi::Variable
#
Returns the internal constraint variable. This is used by the constraint solver to calculate the final value.