Skip to content

Commit 0536ace

Browse files
committed
Internals: (Breaking) renamed RenderNavHighlight() to RenderNavCursor(), ImGuiNavHighlightFlags to ImGuiNavRenderCursorFlags. (#1074, #2048, #7237, #8059, #1712, #7370, #787)
+ referenced in #8057, #3882, #3411, #2155, #3351, #4722, #1658, #4050.
1 parent 23b655f commit 0536ace

File tree

4 files changed

+47
-38
lines changed

4 files changed

+47
-38
lines changed

imgui.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -3696,24 +3696,24 @@ void ImGui::RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding)
36963696
}
36973697
}
36983698

3699-
void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags)
3699+
void ImGui::RenderNavCursor(const ImRect& bb, ImGuiID id, ImGuiNavRenderCursorFlags flags)
37003700
{
37013701
ImGuiContext& g = *GImGui;
37023702
if (id != g.NavId)
37033703
return;
3704-
if (!g.NavCursorVisible && !(flags & ImGuiNavHighlightFlags_AlwaysDraw))
3704+
if (!g.NavCursorVisible && !(flags & ImGuiNavRenderCursorFlags_AlwaysDraw))
37053705
return;
37063706
if (id == g.LastItemData.ID && (g.LastItemData.ItemFlags & ImGuiItemFlags_NoNav))
37073707
return;
37083708
ImGuiWindow* window = g.CurrentWindow;
37093709
if (window->DC.NavHideHighlightOneFrame)
37103710
return;
37113711

3712-
float rounding = (flags & ImGuiNavHighlightFlags_NoRounding) ? 0.0f : g.Style.FrameRounding;
3712+
float rounding = (flags & ImGuiNavRenderCursorFlags_NoRounding) ? 0.0f : g.Style.FrameRounding;
37133713
ImRect display_rect = bb;
37143714
display_rect.ClipWith(window->ClipRect);
37153715
const float thickness = 2.0f;
3716-
if (flags & ImGuiNavHighlightFlags_Compact)
3716+
if (flags & ImGuiNavRenderCursorFlags_Compact)
37173717
{
37183718
window->DrawList->AddRect(display_rect.Min, display_rect.Max, GetColorU32(ImGuiCol_NavHighlight), rounding, 0, thickness);
37193719
}
@@ -6067,11 +6067,11 @@ void ImGui::EndChild()
60676067
if ((child_window->DC.NavLayersActiveMask != 0 || child_window->DC.NavWindowHasScrollY) && !nav_flattened)
60686068
{
60696069
ItemAdd(bb, child_window->ChildId);
6070-
RenderNavHighlight(bb, child_window->ChildId);
6070+
RenderNavCursor(bb, child_window->ChildId);
60716071

60726072
// When browsing a window that has no activable items (scroll only) we keep a highlight on the child (pass g.NavId to trick into always displaying)
60736073
if (child_window->DC.NavLayersActiveMask == 0 && child_window == g.NavWindow)
6074-
RenderNavHighlight(ImRect(bb.Min - ImVec2(2, 2), bb.Max + ImVec2(2, 2)), g.NavId, ImGuiNavHighlightFlags_Compact);
6074+
RenderNavCursor(ImRect(bb.Min - ImVec2(2, 2), bb.Max + ImVec2(2, 2)), g.NavId, ImGuiNavRenderCursorFlags_Compact);
60756075
}
60766076
else
60776077
{
@@ -15950,7 +15950,7 @@ bool ImGui::DebugBreakButton(const char* label, const char* description_of_locat
1595015950
ColorConvertRGBtoHSV(col4f.x, col4f.y, col4f.z, hsv.x, hsv.y, hsv.z);
1595115951
ColorConvertHSVtoRGB(hsv.x + 0.20f, hsv.y, hsv.z, col4f.x, col4f.y, col4f.z);
1595215952

15953-
RenderNavHighlight(bb, id);
15953+
RenderNavCursor(bb, id);
1595415954
RenderFrame(bb.Min, bb.Max, GetColorU32(col4f), true, g.Style.FrameRounding);
1595515955
RenderTextClipped(bb.Min, bb.Max, label, NULL, &label_size, g.Style.ButtonTextAlign, &bb);
1595615956

imgui_internal.h

+16-7
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ typedef int ImGuiDebugLogFlags; // -> enum ImGuiDebugLogFlags_ // F
177177
typedef int ImGuiFocusRequestFlags; // -> enum ImGuiFocusRequestFlags_ // Flags: for FocusWindow()
178178
typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for g.LastItemData.StatusFlags
179179
typedef int ImGuiOldColumnFlags; // -> enum ImGuiOldColumnFlags_ // Flags: for BeginColumns()
180-
typedef int ImGuiNavHighlightFlags; // -> enum ImGuiNavHighlightFlags_ // Flags: for RenderNavHighlight()
180+
typedef int ImGuiNavRenderCursorFlags; // -> enum ImGuiNavRenderCursorFlags_//Flags: for RenderNavCursor()
181181
typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests
182182
typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions
183183
typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions
@@ -1546,12 +1546,18 @@ enum ImGuiScrollFlags_
15461546
ImGuiScrollFlags_MaskY_ = ImGuiScrollFlags_KeepVisibleEdgeY | ImGuiScrollFlags_KeepVisibleCenterY | ImGuiScrollFlags_AlwaysCenterY,
15471547
};
15481548

1549-
enum ImGuiNavHighlightFlags_
1549+
enum ImGuiNavRenderCursorFlags_
15501550
{
1551-
ImGuiNavHighlightFlags_None = 0,
1552-
ImGuiNavHighlightFlags_Compact = 1 << 1, // Compact highlight, no padding
1553-
ImGuiNavHighlightFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) _even_ when using the mouse.
1554-
ImGuiNavHighlightFlags_NoRounding = 1 << 3,
1551+
ImGuiNavRenderCursorFlags_None = 0,
1552+
ImGuiNavRenderCursorFlags_Compact = 1 << 1, // Compact highlight, no padding/distance from focused item
1553+
ImGuiNavRenderCursorFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) even when g.NavCursorVisible == false, aka even when using the mouse.
1554+
ImGuiNavRenderCursorFlags_NoRounding = 1 << 3,
1555+
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1556+
ImGuiNavHighlightFlags_None = ImGuiNavRenderCursorFlags_None, // Renamed in 1.91.4
1557+
ImGuiNavHighlightFlags_Compact = ImGuiNavRenderCursorFlags_Compact, // Renamed in 1.91.4
1558+
ImGuiNavHighlightFlags_AlwaysDraw = ImGuiNavRenderCursorFlags_AlwaysDraw, // Renamed in 1.91.4
1559+
ImGuiNavHighlightFlags_NoRounding = ImGuiNavRenderCursorFlags_NoRounding, // Renamed in 1.91.4
1560+
#endif
15551561
};
15561562

15571563
enum ImGuiNavMoveFlags_
@@ -3343,7 +3349,10 @@ namespace ImGui
33433349
IMGUI_API void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool borders = true, float rounding = 0.0f);
33443350
IMGUI_API void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f);
33453351
IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0);
3346-
IMGUI_API void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags = ImGuiNavHighlightFlags_None); // Navigation highlight
3352+
IMGUI_API void RenderNavCursor(const ImRect& bb, ImGuiID id, ImGuiNavRenderCursorFlags flags = ImGuiNavRenderCursorFlags_None); // Navigation highlight
3353+
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
3354+
inline void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavRenderCursorFlags flags = ImGuiNavRenderCursorFlags_None) { RenderNavCursor(bb, id, flags); } // Renamed in 1.91.4
3355+
#endif
33473356
IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text.
33483357
IMGUI_API void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow);
33493358

imgui_tables.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3139,7 +3139,7 @@ void ImGui::TableHeader(const char* label)
31393139
if ((table->RowFlags & ImGuiTableRowFlags_Headers) == 0)
31403140
TableSetBgColor(ImGuiTableBgTarget_CellBg, GetColorU32(ImGuiCol_TableHeaderBg), table->CurrentColumn);
31413141
}
3142-
RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_Compact | ImGuiNavHighlightFlags_NoRounding);
3142+
RenderNavCursor(bb, id, ImGuiNavRenderCursorFlags_Compact | ImGuiNavRenderCursorFlags_NoRounding);
31433143
if (held)
31443144
table->HeldHeaderColumn = (ImGuiTableColumnIdx)column_n;
31453145
window->DC.CursorPos.y -= g.Style.ItemSpacing.y * 0.5f;

imgui_widgets.cpp

+23-23
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags
739739

740740
// Render
741741
const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
742-
RenderNavHighlight(bb, id);
742+
RenderNavCursor(bb, id);
743743
RenderFrame(bb.Min, bb.Max, col, true, style.FrameRounding);
744744

745745
if (g.LogEnabled)
@@ -791,7 +791,7 @@ bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiBut
791791

792792
bool hovered, held;
793793
bool pressed = ButtonBehavior(bb, id, &hovered, &held, flags);
794-
RenderNavHighlight(bb, id);
794+
RenderNavCursor(bb, id);
795795

796796
IMGUI_TEST_ENGINE_ITEM_INFO(id, str_id, g.LastItemData.StatusFlags);
797797
return pressed;
@@ -817,7 +817,7 @@ bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiBu
817817
// Render
818818
const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
819819
const ImU32 text_col = GetColorU32(ImGuiCol_Text);
820-
RenderNavHighlight(bb, id);
820+
RenderNavCursor(bb, id);
821821
RenderFrame(bb.Min, bb.Max, bg_col, true, g.Style.FrameRounding);
822822
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);
823823

@@ -858,7 +858,7 @@ bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos)
858858
ImU32 bg_col = GetColorU32(held ? ImGuiCol_ButtonActive : ImGuiCol_ButtonHovered);
859859
if (hovered)
860860
window->DrawList->AddRectFilled(bb.Min, bb.Max, bg_col);
861-
RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_Compact);
861+
RenderNavCursor(bb, id, ImGuiNavRenderCursorFlags_Compact);
862862
ImU32 cross_col = GetColorU32(ImGuiCol_Text);
863863
ImVec2 cross_center = bb.GetCenter() - ImVec2(0.5f, 0.5f);
864864
float cross_extent = g.FontSize * 0.5f * 0.7071f - 1.0f;
@@ -885,7 +885,7 @@ bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos)
885885
ImU32 text_col = GetColorU32(ImGuiCol_Text);
886886
if (hovered || held)
887887
window->DrawList->AddRectFilled(bb.Min, bb.Max, bg_col);
888-
RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_Compact);
888+
RenderNavCursor(bb, id, ImGuiNavRenderCursorFlags_Compact);
889889
RenderArrow(window->DrawList, bb.Min, text_col, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f);
890890

891891
// Switch to moving the window after mouse is moved beyond the initial drag threshold
@@ -1092,7 +1092,7 @@ bool ImGui::ImageButtonEx(ImGuiID id, ImTextureID texture_id, const ImVec2& imag
10921092

10931093
// Render
10941094
const ImU32 col = GetColorU32((held && hovered) ? ImGuiCol_ButtonActive : hovered ? ImGuiCol_ButtonHovered : ImGuiCol_Button);
1095-
RenderNavHighlight(bb, id);
1095+
RenderNavCursor(bb, id);
10961096
RenderFrame(bb.Min, bb.Max, col, true, ImClamp((float)ImMin(padding.x, padding.y), 0.0f, g.Style.FrameRounding));
10971097
if (bg_col.w > 0.0f)
10981098
window->DrawList->AddRectFilled(bb.Min + padding, bb.Max - padding, GetColorU32(bg_col));
@@ -1183,7 +1183,7 @@ bool ImGui::Checkbox(const char* label, bool* v)
11831183
const bool mixed_value = (g.LastItemData.ItemFlags & ImGuiItemFlags_MixedValue) != 0;
11841184
if (is_visible)
11851185
{
1186-
RenderNavHighlight(total_bb, id);
1186+
RenderNavCursor(total_bb, id);
11871187
RenderFrame(check_bb.Min, check_bb.Max, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), true, style.FrameRounding);
11881188
ImU32 check_col = GetColorU32(ImGuiCol_CheckMark);
11891189
if (mixed_value)
@@ -1285,7 +1285,7 @@ bool ImGui::RadioButton(const char* label, bool active)
12851285
if (pressed)
12861286
MarkItemEdited(id);
12871287

1288-
RenderNavHighlight(total_bb, id);
1288+
RenderNavCursor(total_bb, id);
12891289
const int num_segment = window->DrawList->_CalcCircleAutoSegmentCount(radius);
12901290
window->DrawList->AddCircleFilled(center, radius, GetColorU32((held && hovered) ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg), num_segment);
12911291
if (active)
@@ -1425,7 +1425,7 @@ bool ImGui::TextLink(const char* label)
14251425

14261426
bool hovered, held;
14271427
bool pressed = ButtonBehavior(bb, id, &hovered, &held);
1428-
RenderNavHighlight(bb, id, ImGuiNavHighlightFlags_None);
1428+
RenderNavCursor(bb, id);
14291429

14301430
if (hovered)
14311431
SetMouseCursor(ImGuiMouseCursor_Hand);
@@ -1856,7 +1856,7 @@ bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboF
18561856
// Render shape
18571857
const ImU32 frame_col = GetColorU32(hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg);
18581858
const float value_x2 = ImMax(bb.Min.x, bb.Max.x - arrow_size);
1859-
RenderNavHighlight(bb, id);
1859+
RenderNavCursor(bb, id);
18601860
if (!(flags & ImGuiComboFlags_NoPreview))
18611861
window->DrawList->AddRectFilled(bb.Min, ImVec2(value_x2, bb.Max.y), frame_col, style.FrameRounding, (flags & ImGuiComboFlags_NoArrowButton) ? ImDrawFlags_RoundCornersAll : ImDrawFlags_RoundCornersLeft);
18621862
if (!(flags & ImGuiComboFlags_NoArrowButton))
@@ -2658,7 +2658,7 @@ bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data,
26582658

26592659
// Draw frame
26602660
const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg);
2661-
RenderNavHighlight(frame_bb, id);
2661+
RenderNavCursor(frame_bb, id);
26622662
RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, style.FrameRounding);
26632663

26642664
// Drag behavior
@@ -3240,7 +3240,7 @@ bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_dat
32403240

32413241
// Draw frame
32423242
const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg);
3243-
RenderNavHighlight(frame_bb, id);
3243+
RenderNavCursor(frame_bb, id);
32443244
RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding);
32453245

32463246
// Slider behavior
@@ -3389,7 +3389,7 @@ bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType d
33893389

33903390
// Draw frame
33913391
const ImU32 frame_col = GetColorU32(g.ActiveId == id ? ImGuiCol_FrameBgActive : hovered ? ImGuiCol_FrameBgHovered : ImGuiCol_FrameBg);
3392-
RenderNavHighlight(frame_bb, id);
3392+
RenderNavCursor(frame_bb, id);
33933393
RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding);
33943394

33953395
// Slider behavior
@@ -5102,7 +5102,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
51025102
// Render frame
51035103
if (!is_multiline)
51045104
{
5105-
RenderNavHighlight(frame_bb, id);
5105+
RenderNavCursor(frame_bb, id);
51065106
RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding);
51075107
}
51085108

@@ -6113,7 +6113,7 @@ bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFl
61136113
else
61146114
window->DrawList->AddRectFilled(bb_inner.Min, bb_inner.Max, GetColorU32(col_source), rounding);
61156115
}
6116-
RenderNavHighlight(bb, id);
6116+
RenderNavCursor(bb, id);
61176117
if ((flags & ImGuiColorEditFlags_NoBorder) == 0)
61186118
{
61196119
if (g.Style.FrameBorderSize > 0.0f)
@@ -6677,15 +6677,15 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
66776677
// Render
66786678
{
66796679
const ImU32 text_col = GetColorU32(ImGuiCol_Text);
6680-
ImGuiNavHighlightFlags nav_highlight_flags = ImGuiNavHighlightFlags_Compact;
6680+
ImGuiNavRenderCursorFlags nav_render_cursor_flags = ImGuiNavRenderCursorFlags_Compact;
66816681
if (is_multi_select)
6682-
nav_highlight_flags |= ImGuiNavHighlightFlags_AlwaysDraw; // Always show the nav rectangle
6682+
nav_render_cursor_flags |= ImGuiNavRenderCursorFlags_AlwaysDraw; // Always show the nav rectangle
66836683
if (display_frame)
66846684
{
66856685
// Framed type
66866686
const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
66876687
RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, true, style.FrameRounding);
6688-
RenderNavHighlight(frame_bb, id, nav_highlight_flags);
6688+
RenderNavCursor(frame_bb, id, nav_render_cursor_flags);
66896689
if (flags & ImGuiTreeNodeFlags_Bullet)
66906690
RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.60f, text_pos.y + g.FontSize * 0.5f), text_col);
66916691
else if (!is_leaf)
@@ -6705,7 +6705,7 @@ bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* l
67056705
const ImU32 bg_col = GetColorU32((held && hovered) ? ImGuiCol_HeaderActive : hovered ? ImGuiCol_HeaderHovered : ImGuiCol_Header);
67066706
RenderFrame(frame_bb.Min, frame_bb.Max, bg_col, false);
67076707
}
6708-
RenderNavHighlight(frame_bb, id, nav_highlight_flags);
6708+
RenderNavCursor(frame_bb, id, nav_render_cursor_flags);
67096709
if (flags & ImGuiTreeNodeFlags_Bullet)
67106710
RenderBullet(window->DrawList, ImVec2(text_pos.x - text_offset_x * 0.5f, text_pos.y + g.FontSize * 0.5f), text_col);
67116711
else if (!is_leaf)
@@ -7026,10 +7026,10 @@ bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags fl
70267026
}
70277027
if (g.NavId == id)
70287028
{
7029-
ImGuiNavHighlightFlags nav_highlight_flags = ImGuiNavHighlightFlags_Compact | ImGuiNavHighlightFlags_NoRounding;
7029+
ImGuiNavRenderCursorFlags nav_render_cursor_flags = ImGuiNavRenderCursorFlags_Compact | ImGuiNavRenderCursorFlags_NoRounding;
70307030
if (is_multi_select)
7031-
nav_highlight_flags |= ImGuiNavHighlightFlags_AlwaysDraw; // Always show the nav rectangle
7032-
RenderNavHighlight(bb, id, nav_highlight_flags);
7031+
nav_render_cursor_flags |= ImGuiNavRenderCursorFlags_AlwaysDraw; // Always show the nav rectangle
7032+
RenderNavCursor(bb, id, nav_render_cursor_flags);
70337033
}
70347034
}
70357035

@@ -10109,7 +10109,7 @@ bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open,
1010910109
float y_offset = 1.0f * g.CurrentDpiScale;
1011010110
display_draw_list->AddLine(bb.GetTL() + ImVec2(x_offset, y_offset), bb.GetTR() + ImVec2(-x_offset, y_offset), GetColorU32(tab_bar_focused ? ImGuiCol_TabSelectedOverline : ImGuiCol_TabDimmedSelectedOverline), style.TabBarOverlineSize);
1011110111
}
10112-
RenderNavHighlight(bb, id);
10112+
RenderNavCursor(bb, id);
1011310113

1011410114
// Select with right mouse button. This is so the common idiom for context menu automatically highlight the current widget.
1011510115
const bool hovered_unblocked = IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup);

0 commit comments

Comments
 (0)