Added ImGuiCorner enum to clarify some internal code

This commit is contained in:
ocornut
2016-10-09 10:56:23 +02:00
parent d567595dde
commit 1810b3ff38
2 changed files with 15 additions and 7 deletions

View File

@ -197,6 +197,15 @@ enum ImGuiDataType
ImGuiDataType_Float2,
};
enum ImGuiCorner
{
ImGuiCorner_TopLeft = 1 << 0, // 1
ImGuiCorner_TopRight = 1 << 1, // 2
ImGuiCorner_BottomRight = 1 << 2, // 4
ImGuiCorner_BottomLeft = 1 << 3, // 8
ImGuiCorner_All = 0x0F
};
// 2D axis aligned bounding-box
// NB: we can't rely on ImVec2 math operators being available here
struct IMGUI_API ImRect