diff options
author | Sebastian Geerken <devnull@localhost> | 2014-06-16 21:29:05 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-06-16 21:29:05 +0200 |
commit | d23346d250cd18718f0540cfca49e2204fb40767 (patch) | |
tree | 58ee8e7a8590c104bdc0067dc89552d165ab991f /dw/widget.hh | |
parent | 3d05377424b220d8bddc45c062c54dd6aab66f26 (diff) |
Started work on more efficient handling of viewport size changes.
Diffstat (limited to 'dw/widget.hh')
-rw-r--r-- | dw/widget.hh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dw/widget.hh b/dw/widget.hh index 7fe49c74..fd9eb9dc 100644 --- a/dw/widget.hh +++ b/dw/widget.hh @@ -166,7 +166,12 @@ private: */ bool buttonSensitiveSet; - void actualQueueResize (int ref, bool extremesChanged); + void queueResize (int ref, bool extremesChanged, bool fast); + inline void queueResizeFast (int ref, bool extremesChanged) + { queueResize (ref, extremesChanged, true); } + void actualQueueResize (int ref, bool extremesChanged, bool fast); + + void containerSizeChanged (); public: /** @@ -275,11 +280,10 @@ protected: inline void queueDraw () - { - queueDrawArea (0, 0, allocation.width, getHeight()); - } + { queueDrawArea (0, 0, allocation.width, getHeight()); } void queueDrawArea (int x, int y, int width, int height); - void queueResize (int ref, bool extremesChanged); + inline void queueResize (int ref, bool extremesChanged) + { queueResize (ref, extremesChanged, false); } /** * \brief See \ref dw-widget-sizes. @@ -322,6 +326,7 @@ protected: *descent)); virtual void correctExtremesOfChild (Widget *child, Extremes *extremes); + virtual void containerSizeChangedForChildren (); virtual void notifySetAsTopLevel(); virtual void notifySetParent(); |