mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-24 07:40:22 +01:00
+ ArrowButtonEx() internal bits.
This commit is contained in:
parent
7a22767483
commit
2eda3585e7
@ -2834,7 +2834,7 @@ static inline bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFla
|
|||||||
// FIXME-OPT: This could be cached/stored within the window.
|
// FIXME-OPT: This could be cached/stored within the window.
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
if (!g.NavWindow)
|
if (!g.NavWindow)
|
||||||
return false;
|
return true;
|
||||||
if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindow)
|
if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindow)
|
||||||
if (focused_root_window->WasActive && focused_root_window != window->RootWindow)
|
if (focused_root_window->WasActive && focused_root_window != window->RootWindow)
|
||||||
{
|
{
|
||||||
|
@ -1780,7 +1780,7 @@ namespace ImGui
|
|||||||
IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0,0), ImGuiButtonFlags flags = 0);
|
IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0,0), ImGuiButtonFlags flags = 0);
|
||||||
IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos);
|
IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos);
|
||||||
IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos);
|
IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos);
|
||||||
IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags);
|
IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0);
|
||||||
IMGUI_API void Scrollbar(ImGuiAxis axis);
|
IMGUI_API void Scrollbar(ImGuiAxis axis);
|
||||||
IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* p_scroll_v, float avail_v, float contents_v, ImDrawCornerFlags rounding_corners);
|
IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* p_scroll_v, float avail_v, float contents_v, ImDrawCornerFlags rounding_corners);
|
||||||
IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis);
|
IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis);
|
||||||
|
@ -720,7 +720,7 @@ bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiBu
|
|||||||
bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir)
|
bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir)
|
||||||
{
|
{
|
||||||
float sz = GetFrameHeight();
|
float sz = GetFrameHeight();
|
||||||
return ArrowButtonEx(str_id, dir, ImVec2(sz, sz), 0);
|
return ArrowButtonEx(str_id, dir, ImVec2(sz, sz), ImGuiButtonFlags_None);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Button to close a window
|
// Button to close a window
|
||||||
|
Loading…
Reference in New Issue
Block a user