| 19 | struct MYGUI_EXPORT Align |
| 20 | { |
| 21 | enum Enum |
| 22 | { |
| 23 | HCenter = MYGUI_FLAG_NONE, /**< center horizontally */ |
| 24 | VCenter = MYGUI_FLAG_NONE, /**< center vertically */ |
| 25 | Center = HCenter | VCenter, /**< center in the dead center */ |
| 26 | |
| 27 | Left = MYGUI_FLAG(1), /**< value from the left (and center vertically) */ |
| 28 | Right = MYGUI_FLAG(2), /**< value from the right (and center vertically) */ |
| 29 | HStretch = Left | Right, /**< stretch horizontally proportionate to parent window (and center vertically) */ |
| 30 | |
| 31 | Top = MYGUI_FLAG(3), /**< value from the top (and center horizontally) */ |
| 32 | Bottom = MYGUI_FLAG(4), /**< value from the bottom (and center horizontally) */ |
| 33 | VStretch = Top | Bottom, /**< stretch vertically proportionate to parent window (and center horizontally) */ |
| 34 | |
| 35 | Stretch = HStretch | VStretch, /**< stretch proportionate to parent window */ |
| 36 | Default = Left | Top /**< default value (value from left and top) */ |
| 37 | }; |
| 38 | |
| 39 | Align(Enum _value = Default) : |
| 40 | mValue(_value) |