From 5ee07bcea3b91b9c1f8fbe6c2d13a9e80e7b1f5a Mon Sep 17 00:00:00 2001 From: David Carpenter Date: Thu, 8 Feb 2024 22:35:32 -0500 Subject: [PATCH] rename 'done' field of SplitterMoveEvent to 'finishedDragging' --- src/wingui/WinGui.cpp | 4 ++-- src/wingui/WinGui.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wingui/WinGui.cpp b/src/wingui/WinGui.cpp index 8ea0d71c5ea5..4f3ec1b62346 100644 --- a/src/wingui/WinGui.cpp +++ b/src/wingui/WinGui.cpp @@ -2397,7 +2397,7 @@ LRESULT Splitter::WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { ReleaseCapture(); SplitterMoveEvent arg; arg.w = this; - arg.done = true; + arg.finishedDragging = true; onSplitterMove(&arg); HwndScheduleRepaint(hwnd); return 0; @@ -2411,7 +2411,7 @@ LRESULT Splitter::WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { if (hwnd == GetCapture()) { SplitterMoveEvent arg; arg.w = this; - arg.done = false; + arg.finishedDragging = false; onSplitterMove(&arg); if (!arg.resizeAllowed) { curId = IDC_NO; diff --git a/src/wingui/WinGui.h b/src/wingui/WinGui.h index 477f8d94ae0f..833a8c0e6726 100644 --- a/src/wingui/WinGui.h +++ b/src/wingui/WinGui.h @@ -444,12 +444,12 @@ enum class SplitterType { struct Splitter; -// called when user drags the splitter ('done' is false) and when drag is finished ('done' is +// called when user drags the splitter ('finishedDragging' is false) and when drag is finished ('finishedDragging' is // true). the owner can constrain splitter by using current cursor // position and setting resizeAllowed to false if it's not allowed to go there struct SplitterMoveEvent { Splitter* w = nullptr; - bool done = false; // TODO: rename to finishedDragging + bool finishedDragging = false; // user can set to false to forbid resizing here bool resizeAllowed = true; };