diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 91cd29d8..ed16e323 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -2594,6 +2594,16 @@ void imguiSeparatorLine(uint16_t _height) s_imgui.separatorLine(_height); } +int32_t imguiGetWidgetX() +{ + return s_imgui.m_widgetX; +} + +int32_t imguiGetWidgetY() +{ + return s_imgui.m_widgetY; +} + bool imguiButton(const char* _text, bool _enabled, uint32_t _rgb0, int32_t _r) { return s_imgui.button(_text, _enabled, _rgb0, _r); diff --git a/examples/common/imgui/imgui.h b/examples/common/imgui/imgui.h index 008e547c..b47f6d8e 100644 --- a/examples/common/imgui/imgui.h +++ b/examples/common/imgui/imgui.h @@ -128,6 +128,9 @@ void imguiUnindent(uint16_t _width = IMGUI_INDENT_VALUE); void imguiSeparator(uint16_t _height = IMGUI_SEPARATOR_VALUE); void imguiSeparatorLine(uint16_t _height = IMGUI_SEPARATOR_VALUE); +int32_t imguiGetWidgetX(); +int32_t imguiGetWidgetY(); + bool imguiButton(const char* _text, bool _enabled = true, uint32_t _rgb0 = IMGUI_BUTTON_RGB0, int32_t _r = IMGUI_BUTTON_R); bool imguiItem(const char* _text, bool _enabled = true); bool imguiCheck(const char* _text, bool _checked, bool _enabled = true);