namespace Sandbox;
///
/// Flags dictating position of text (and other elements).
/// Default alignment on each axis is Top, Left.
/// Values for each axis can be combined into a single value, conflicting values have undefined behavior.
///
[Flags]
public enum TextFlag
{
None = 0,
///
/// Align to the left on the X axis.
///
Left = 0x0001,
///
/// Align to the right on the X axis.
///
Right = 0x0002,
///
/// Align in the center on the X axis.
///
CenterHorizontally = 0x0004,
Justify = 0x0008,
Absolute = 0x0010,
///
/// Anchor to the top on the Y axis.
///
Top = 0x0020,
///
/// Anchor to the bottom on the Y axis.
///
Bottom = 0x0040,
///
/// Align in the center on the Y axis.
///
CenterVertically = 0x0080,
///
/// Anchor to the top left corner.
///
LeftTop = Left | Top,
///
/// Anchor to the left side, center vertically.
///
LeftCenter = Left | CenterVertically,
///
/// Anchor to the bottom left corner.
///
LeftBottom = Left | Bottom,
///
/// Anchor to the top side, center horizontally.
///
CenterTop = CenterHorizontally | Top,
///
/// Align in the center on both axises.
///
Center = CenterHorizontally | CenterVertically,
///
/// Anchor to the bottom side, center horizontally.
///
CenterBottom = CenterHorizontally | Bottom,
///
/// Anchor to the top right corner.
///
RightTop = Right | Top,
///
/// Anchor to the right side, center vertically.
///
RightCenter = Right | CenterVertically,
///
/// Anchor to the bottom right corner.
///
RightBottom = Right | Bottom,
///
/// Limit the text to a single line. Used in Graphics.DrawText and Graphics.MeasureText.
///
SingleLine = 0x0100,
///
/// Do not cutoff text beyond its bounds. Used in Graphics.DrawText and Graphics.MeasureText.
///
DontClip = 0x0200,
//ExpandTabs = 0x0400,
//ShowMnemonic = 0x0800,
WordWrap = 0x1000,
WrapAnywhere = 0x2000,
//DontPrint = 0x4000,
//IncludeTrailingSpaces = 0x08000000,
//HideMnemonic = 0x8000,
//JustificationForced = 0x10000,
//ForceLeftToRight = 0x20000,
//ForceRightToLeft = 0x40000,
// Note: Commenting out stuff that is bullshit
};