Commit e0a50df3 authored by ipkiss's avatar ipkiss
Browse files

* skins2/controls/*: forward the onResize() method to the decorated controls

parent 7ea9e5cc
......@@ -86,6 +86,12 @@ const Position *CtrlMove::getPosition() const
}
void CtrlMove::onResize()
{
m_rCtrl.onResize();
}
void CtrlMove::handleEvent( EvtGeneric &rEvent )
{
m_pEvt = &rEvent;
......
......@@ -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:
......
......@@ -95,6 +95,12 @@ const Position *CtrlResize::getPosition() const
}
void CtrlResize::onResize()
{
m_rCtrl.onResize();
}
void CtrlResize::handleEvent( EvtGeneric &rEvent )
{
m_pEvt = &rEvent;
......
......@@ -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(); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment