@ -731,6 +731,7 @@ bool ImGui::SmallButton(const char* label)
// Then you can keep 'str_id' empty or the same for all your buttons (instead of creating a string based on a non-string id)
bool ImGui : : InvisibleButton ( const char * str_id , const ImVec2 & size_arg , ImGuiButtonFlags flags )
{
ImGuiContext & g = * GImGui ;
ImGuiWindow * window = GetCurrentWindow ( ) ;
if ( window - > SkipItems )
return false ;
@ -748,16 +749,17 @@ bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiBut
bool hovered , held ;
bool pressed = ButtonBehavior ( bb , id , & hovered , & held , flags ) ;
IMGUI_TEST_ENGINE_ITEM_INFO ( id , str_id , g . LastItemData . StatusFlags ) ;
return pressed ;
}
bool ImGui : : ArrowButtonEx ( const char * str_id , ImGuiDir dir , ImVec2 size , ImGuiButtonFlags flags )
{
ImGuiContext & g = * GImGui ;
ImGuiWindow * window = GetCurrentWindow ( ) ;
if ( window - > SkipItems )
return false ;
ImGuiContext & g = * GImGui ;
const ImGuiID id = window - > GetID ( str_id ) ;
const ImRect bb ( window - > DC . CursorPos , window - > DC . CursorPos + size ) ;
const float default_size = GetFrameHeight ( ) ;
@ -778,6 +780,7 @@ bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiBu
RenderFrame ( bb . Min , bb . Max , bg_col , true , g . Style . FrameRounding ) ;
RenderArrow ( window - > DrawList , bb . Min + ImVec2 ( ImMax ( 0.0f , ( size . x - g . FontSize ) * 0.5f ) , ImMax ( 0.0f , ( size . y - g . FontSize ) * 0.5f ) ) , text_col , dir ) ;
IMGUI_TEST_ENGINE_ITEM_INFO ( id , str_id , g . LastItemData . StatusFlags ) ;
return pressed ;
}