module Layout
Overview
A constraint based layout framework so you can draw stuff with ease.
Extended Modules
Defined in:
block.crlayout.cr
primitive.cr
primitive_tools.cr
Constant Summary
-
VERSION =
"0.2.0"
Instance Method Summary
-
#solve(block : Block, solver : Kiwi::Solver)
Solves all of the
Primitive
values of a block and all of it's children. - #solve(block : Block)
Instance Method Detail
Solves all of the Primitive
values of a block and all of it's children.
Example
solver = Kiwi::Solver.new # cache this somewhere
Layout.solve(my_block, solver)
If you only need to solve once you can skip passing in the solver without losing any performance.