mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-26 13:37:00 +00:00
parent
325299f942
commit
a725db17b7
@ -4229,6 +4229,7 @@ static void StartLockWheelingWindow(ImGuiWindow* window)
|
|||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
if (g.WheelingWindow == window)
|
if (g.WheelingWindow == window)
|
||||||
return;
|
return;
|
||||||
|
IMGUI_DEBUG_LOG_IO("StartLockWheelingWindow() \"%s\"\n", window ? window->Name : "NULL");
|
||||||
g.WheelingWindow = window;
|
g.WheelingWindow = window;
|
||||||
g.WheelingWindowRefMousePos = g.IO.MousePos;
|
g.WheelingWindowRefMousePos = g.IO.MousePos;
|
||||||
g.WheelingWindowTimer = WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER;
|
g.WheelingWindowTimer = WINDOWS_MOUSE_WHEEL_SCROLL_LOCK_TIMER;
|
||||||
@ -4246,6 +4247,7 @@ void ImGui::UpdateMouseWheel()
|
|||||||
g.WheelingWindowTimer = 0.0f;
|
g.WheelingWindowTimer = 0.0f;
|
||||||
if (g.WheelingWindowTimer <= 0.0f)
|
if (g.WheelingWindowTimer <= 0.0f)
|
||||||
{
|
{
|
||||||
|
IMGUI_DEBUG_LOG_IO("UpdateMouseWheel() release WheelingWindow lock \"%s\"\n", g.WheelingWindow->Name);
|
||||||
g.WheelingWindow = NULL;
|
g.WheelingWindow = NULL;
|
||||||
g.WheelingWindowTimer = 0.0f;
|
g.WheelingWindowTimer = 0.0f;
|
||||||
}
|
}
|
||||||
|
3
imgui.h
3
imgui.h
@ -947,6 +947,7 @@ namespace ImGui
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
// Flags for ImGui::Begin()
|
// Flags for ImGui::Begin()
|
||||||
|
// (Those are per-window flags. There are shared flags in ImGuiIO: io.ConfigWindowsResizeFromEdges and io.ConfigWindowsMoveFromTitleBarOnly)
|
||||||
enum ImGuiWindowFlags_
|
enum ImGuiWindowFlags_
|
||||||
{
|
{
|
||||||
ImGuiWindowFlags_None = 0,
|
ImGuiWindowFlags_None = 0,
|
||||||
@ -984,6 +985,7 @@ enum ImGuiWindowFlags_
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Flags for ImGui::InputText()
|
// Flags for ImGui::InputText()
|
||||||
|
// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigInputTextCursorBlink and io.ConfigInputTextEnterKeepActive)
|
||||||
enum ImGuiInputTextFlags_
|
enum ImGuiInputTextFlags_
|
||||||
{
|
{
|
||||||
ImGuiInputTextFlags_None = 0,
|
ImGuiInputTextFlags_None = 0,
|
||||||
@ -1678,6 +1680,7 @@ enum ImGuiColorEditFlags_
|
|||||||
|
|
||||||
// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc.
|
// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc.
|
||||||
// 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.
|
// 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.
|
||||||
|
// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText)
|
||||||
enum ImGuiSliderFlags_
|
enum ImGuiSliderFlags_
|
||||||
{
|
{
|
||||||
ImGuiSliderFlags_None = 0,
|
ImGuiSliderFlags_None = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user