Added imguiGetWidgetW().

This commit is contained in:
Dario Manesku 2014-12-24 02:33:47 +01:00
parent 67c69d3ba2
commit 528756610b
2 changed files with 6 additions and 0 deletions

View file

@ -3160,6 +3160,11 @@ int32_t imguiGetWidgetY()
return s_imgui.getCurrentArea().m_widgetY;
}
int32_t imguiGetWidgetW()
{
return s_imgui.getCurrentArea().m_widgetW;
}
void imguiSetCurrentScissor()
{
return s_imgui.setCurrentScissor();

View file

@ -149,6 +149,7 @@ void imguiSeparatorLine(uint16_t _height = IMGUI_SEPARATOR_VALUE);
int32_t imguiGetWidgetX();
int32_t imguiGetWidgetY();
int32_t imguiGetWidgetW();
void imguiSetCurrentScissor(); // Call before drawing custom widgets over imgui area.
bool imguiButton(const char* _text, bool _enabled = true, ImguiAlign::Enum _align = ImguiAlign::LeftIndented, uint32_t _rgb0 = IMGUI_BUTTON_RGB0, int32_t _r = IMGUI_BUTTON_R);