#pragma once #include namespace UI { enum class Orientation { Vertical, Horizontal }; enum class AnchorFlags { None = 0, Left = 1 << 0, Top = 1 << 1, Right = 1 << 2, Bottom = 1 << 3, Center = 1 << 4, Stretch = Left | Right | Top | Bottom }; inline AnchorFlags operator|(AnchorFlags a, AnchorFlags b) { return static_cast(static_cast(a) | static_cast(b)); } inline AnchorFlags operator&(AnchorFlags a, AnchorFlags b) { return static_cast(static_cast(a) & static_cast(b)); } }