diff options
Diffstat (limited to 'c/layout.h')
-rw-r--r-- | c/layout.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -7,6 +7,8 @@ #include "pl.h" #include "win.h" +/* Given main window's width and height, set appropriate positions and + * sizes for child windows. */ void UpdateLayout(int w = 0, int h = 0); /* Dragger objects implement draggable portions of the client area, @@ -22,9 +24,10 @@ protected: bool IsDown(); bool IsDouble(); virtual bool InDragArea(int x, int y); + /* Perform drag, resizing relevant windows. */ virtual void Drag(int x, int y); + /* Called after drag, when mouse button is released. */ virtual void Done(); - /* Reset dragger to automatic position. */ virtual void Reset(); private: @@ -44,6 +47,9 @@ private: void Done() override; }; +/* Below follows the implementation of the non-virtual member + * functions of Dragger, on which derived objects rely. */ + inline bool Dragger::IsDouble() { const long time = GetMessageTime(); |