#include <Pt/Forms/Alignment.h>
Names a position in a rectangle. More...
Public Types | |
| enum | Mode { TopLeft, Top, TopRight, Left, Center, Right, BottomLeft, Bottom, BottomRight } |
| Position of content in a rectangle. More... | |
Public Member Functions | |
| Alignment (Mode m=Center) | |
| Creates an alignment with mode m. | |
| Alignment & | operator= (Mode m) |
| Sets the alignment to m and returns this object. | |
| operator Pt::uint32_t () const | |
| Returns the alignment as an unsigned integer value. | |
The nine modes place content at a corner, an edge center, or the middle of a rectangle. The default is Center.
| enum Mode |