]> git.sesse.net Git - vlc/commitdiff
* skins2/controls/*: forward the onResize() method to the decorated controls
authorOlivier Teulière <ipkiss@videolan.org>
Tue, 15 Aug 2006 18:59:40 +0000 (18:59 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Tue, 15 Aug 2006 18:59:40 +0000 (18:59 +0000)
modules/gui/skins2/controls/ctrl_move.cpp
modules/gui/skins2/controls/ctrl_move.hpp
modules/gui/skins2/controls/ctrl_resize.cpp
modules/gui/skins2/controls/ctrl_resize.hpp

index 6068c93165f1205172dd6c01b5ad646a430ffefd..e890d16e47a5cea427fce8a805807d687d3776d9 100644 (file)
@@ -86,6 +86,12 @@ const Position *CtrlMove::getPosition() const
 }
 
 
+void CtrlMove::onResize()
+{
+    m_rCtrl.onResize();
+}
+
+
 void CtrlMove::handleEvent( EvtGeneric &rEvent )
 {
     m_pEvt = &rEvent;
index 136fd4b477e05ac2b327784d4ec4191dc368bd24..422decb4e2d4ec0f4f93e48da689583bcc22bfa6 100644 (file)
@@ -58,7 +58,10 @@ class CtrlMove: public CtrlFlat
         /// Get the position of the decorated control in the layout, if any
         virtual const Position *getPosition() const;
 
-          /// Get the type of control (custom RTTI)
+        /// Method called when the control is resized
+        virtual void onResize();
+
+        /// Get the type of control (custom RTTI)
         virtual string getType() const { return m_rCtrl.getType(); }
 
     private:
index b9e4638b74013a8719c0abd9b8111d4d17d495d7..7e5965563e603d08eebbf92f930d661068b99d44 100644 (file)
@@ -95,6 +95,12 @@ const Position *CtrlResize::getPosition() const
 }
 
 
+void CtrlResize::onResize()
+{
+    m_rCtrl.onResize();
+}
+
+
 void CtrlResize::handleEvent( EvtGeneric &rEvent )
 {
     m_pEvt = &rEvent;
index 9a708d7d3653c81507db5b33280c6ac8d8572e2e..01857c78b278d4419b396a97f305aaaecd9748fa 100644 (file)
@@ -59,6 +59,9 @@ class CtrlResize: public CtrlFlat
         /// Get the position of the decorated control in the layout, if any
         virtual const Position *getPosition() const;
 
+        /// Method called when the control is resized
+        virtual void onResize();
+
         /// Get the type of control (custom RTTI)
         virtual string getType() const { return m_rCtrl.getType(); }