Skip to content

Commit a725db1

Browse files
committed
Comments for flags discoverability + add to debug log (#3795, #4559)
1 parent 325299f commit a725db1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

imgui.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -4229,6 +4229,7 @@ static void StartLockWheelingWindow(ImGuiWindow* window)
42294229
ImGuiContext& g = *GImGui;
42304230
if (g.WheelingWindow == window)
42314231
return;
4232+
IMGUI_DEBUG_LOG_IO("StartLockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL");
42324233
g.WheelingWindow = window;
42334234
g.WheelingWindowRefMousePos = g.IO.MousePos;
42344235
g.WheelingWindowTimer = WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER;
@@ -4246,6 +4247,7 @@ void ImGui::UpdateMouseWheel()
42464247
g.WheelingWindowTimer = 0.0f;
42474248
if (g.WheelingWindowTimer <= 0.0f)
42484249
{
4250+
IMGUI_DEBUG_LOG_IO("UpdateMouseWheel() release WheelingWindow lock \"%s\"\n", g.WheelingWindow->Name);
42494251
g.WheelingWindow = NULL;
42504252
g.WheelingWindowTimer = 0.0f;
42514253
}

imgui.h

+3
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,7 @@ namespace ImGui
947947
//-----------------------------------------------------------------------------
948948

949949
// Flags for ImGui::Begin()
950+
// (Those are per-window flags. There are shared flags in ImGuiIO: io.ConfigWindowsResizeFromEdges and io.ConfigWindowsMoveFromTitleBarOnly)
950951
enum ImGuiWindowFlags_
951952
{
952953
ImGuiWindowFlags_None = 0,
@@ -984,6 +985,7 @@ enum ImGuiWindowFlags_
984985
};
985986

986987
// Flags for ImGui::InputText()
988+
// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigInputTextCursorBlink and io.ConfigInputTextEnterKeepActive)
987989
enum ImGuiInputTextFlags_
988990
{
989991
ImGuiInputTextFlags_None = 0,
@@ -1678,6 +1680,7 @@ enum ImGuiColorEditFlags_
16781680

16791681
// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc.
16801682
// We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them.
1683+
// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText)
16811684
enum ImGuiSliderFlags_
16821685
{
16831686
ImGuiSliderFlags_None = 0,

0 commit comments

Comments
 (0)