module Layout

Overview

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

Extended Modules

Defined in:

layout.cr

Constant Summary

VERSION = "0.1.0"

Instance Method Summary

Macro 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.


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

Solves all of the Primitive values of a block and all of it's children.


[View source]

Macro Detail

macro constrain(data) #

Provides a convenient DLS that converts a Primitive expression into a Kiwi::Constraint

Example

constrain block1.x >= block2.x

[View source]