diff options
| author | Miles Macklin <[email protected]> | 2017-06-09 13:41:15 +1200 |
|---|---|---|
| committer | Miles Macklin <[email protected]> | 2017-06-09 13:41:15 +1200 |
| commit | 688b5f42e9bfe498d7af7075d4d8f4429867f3a3 (patch) | |
| tree | 7e0d0e7c95298f0418723abd92f61ac6e16b055e /demo/imgui.h | |
| parent | Update README.md (diff) | |
| download | flex-1.2.0.beta.1.tar.xz flex-1.2.0.beta.1.zip | |
1.2.0.beta.11.2.0.beta.1
Diffstat (limited to 'demo/imgui.h')
| -rw-r--r-- | demo/imgui.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/demo/imgui.h b/demo/imgui.h index 10ff3ab..e01f374 100644 --- a/demo/imgui.h +++ b/demo/imgui.h @@ -21,8 +21,8 @@ enum imguiMouseButton { - IMGUI_MBUT_LEFT = 0x01, - IMGUI_MBUT_RIGHT = 0x02, + IMGUI_MBUT_LEFT = 0x01, + IMGUI_MBUT_RIGHT = 0x02, }; enum imguiTextAlign @@ -32,13 +32,11 @@ enum imguiTextAlign IMGUI_ALIGN_RIGHT, }; -inline unsigned int imguiRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255) +inline unsigned int imguiRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a = 255) { return (r) | (g << 8) | (b << 16) | (a << 24); } -struct imguiGfxRect; - void imguiBeginFrame(int mx, int my, unsigned char mbut, int scroll); void imguiEndFrame(); @@ -51,7 +49,7 @@ void imguiSeparator(); void imguiSeparatorLine(); bool imguiButton(const char* text, bool enabled = true); -bool imguiItem(const char* text, bool enabled = true, unsigned int color = imguiRGBA(255, 255, 255, 200), bool forceHot = false); +bool imguiItem(const char* text, bool enabled = true, unsigned int color = imguiRGBA(255, 255, 255, 200)); bool imguiCheck(const char* text, bool checked, bool enabled = true); bool imguiCollapse(const char* text, const char* subtext, bool checked, bool enabled = true); void imguiLabel(const char* text); @@ -75,18 +73,18 @@ enum imguiGfxCmdType struct imguiGfxRect { - short x,y,w,h,r; + short x, y, w, h, r; }; struct imguiGfxText { - short x,y,align; + short x, y, align; const char* text; }; struct imguiGfxLine { - short x0,y0,x1,y1,r; + short x0, y0, x1, y1, r; }; struct imguiGfxCmd @@ -107,4 +105,4 @@ const imguiGfxCmd* imguiGetRenderQueue(); int imguiGetRenderQueueSize(); -#endif // IMGUI_H +#endif // IMGUI_H
\ No newline at end of file |