Commit df221f6c authored by John van Groningen's avatar John van Groningen

add OffsetAlign constructor and Alignment type

parent 69af5577
......@@ -204,7 +204,14 @@ instance toString Modifiers
:: ItemOffset
= NoOffset // Shorthand for OffsetVector zero
| OffsetVector Vector2 // A constant offset vector
| OffsetAlign Alignment // Offset depends on size of other item
| OffsetFun ParentIndex OffsetFun // Offset depends on orientation
:: Alignment
= AlignLeft // Align left edges below each other
| AlignRight // Align right edges below each other
| AlignCenter // Align centers below/next to each other
| AlignTop // Align top edges next to each other
| AlignBottom // Align bottom edges next to each other
:: ParentIndex
:== Int // The number of parents (1..)
:: OffsetFun
......
......@@ -321,7 +321,14 @@ instance toString Modifiers where
:: ItemOffset
= NoOffset // Shorthand for OffsetVector zero
| OffsetVector Vector2 // A constant offset vector
| OffsetAlign Alignment // Offset depends on size of other item
| OffsetFun ParentIndex OffsetFun // Offset depends on orientation
:: Alignment // Only makes sense for ItemLocs that are relative to other items:
= AlignLeft // Align left edges below each other
| AlignRight // Align right edges below each other
| AlignCenter // Align centers below/next to each other
| AlignTop // Align top edges next to each other
| AlignBottom // Align bottom edges next to each other
:: ParentIndex
:== Int // The number of parents (1..)
:: OffsetFun
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment