module Layout

Overview

A constraint based layout framework so you can draw stuff with ease.

Extended Modules

Defined in:

block.cr
layout.cr
primitive.cr
primitive_tools.cr

Constant Summary

VERSION = "0.2.0"

Instance Method Summary

Instance Method Detail

def solve(block : Block, solver : Kiwi::Solver) #

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.


[View source]
def solve(block : Block) #

[View source]