diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-03 20:51:23 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-03 21:39:06 +0200 |
commit | 32bb4696396e48521614d00e5b8f6e6586822f31 (patch) | |
tree | 1c5bd8e5d1a3f549b0a84159b66af472e6aff178 /c/layout.h | |
parent | dee3a413f072e5779fc5ba80692f895ba43815c6 (diff) | |
download | EpisodeBrowser-32bb4696396e48521614d00e5b8f6e6586822f31.tar.gz |
Minor improvements.
Diffstat (limited to 'c/layout.h')
-rw-r--r-- | c/layout.h | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -9,11 +9,10 @@ void UpdateLayout(int w = 0, int h = 0); -/* Draggable portions of the client area, such as the split between - * two list views, are implemented in Dragger singletons. - * - * HandleDown and HandleMove are called by the relevant window - * procedures for WM_(NC)LBUTTONDOWN and WM_SETCURSOR. */ +/* Dragger objects implement draggable portions of the client area, + * such as the split between two list views. HandleDown and HandleMove + * are called by relevant window procedures upon WM_(NC)LBUTTONDOWN + * and WM_SETCURSOR. */ struct Dragger { @@ -24,14 +23,17 @@ protected: bool IsDouble(); virtual bool InDragArea(int x, int y); virtual void Drag(int x, int y); - virtual void Reset(); virtual void Done(); + + /* Reset dragger to automatic position. */ + virtual void Reset(); private: bool m_bActive = false; long m_time = 0; }; -/* Dragger for data list view (upper border). */ +/* DlvDragger implements the draggable split between the data list + * view and the episode list view. */ struct DlvDragger : public Dragger { |