-CmdResizeInnerVout::CmdResizeInnerVout( intf_thread_t *pIntf,
- CtrlVideo* pCtrlVideo )
- : CmdGeneric( pIntf ), m_pCtrlVideo( pCtrlVideo ) { }
-
-
-void CmdResizeInnerVout::execute()
-{
- m_pCtrlVideo->resizeInnerVout();
-}
-
-
CmdResizeVout::CmdResizeVout( intf_thread_t *pIntf, vout_window_t* pWnd,
int width, int height )
: CmdGeneric( pIntf ), m_pWnd( pWnd ), m_width( width ),
};
-/// Command to resize the inner vout window
-class CmdResizeInnerVout: public CmdGeneric
-{
-public:
- /// Resize the given layout
- CmdResizeInnerVout( intf_thread_t *pIntf, CtrlVideo* pCtrlVideo );
- virtual ~CmdResizeInnerVout() { }
- virtual void execute();
- virtual string getType() const { return "resize inner vout"; }
-
-private:
- CtrlVideo* m_pCtrlVideo;
-};
-
-
/// Command to resize the vout window
class CmdResizeVout: public CmdGeneric
{
m_pVoutWindow = NULL;
}
-
-void CtrlVideo::resizeInnerVout( )
-{
- if( m_pVoutWindow )
- {
- WindowManager &rWindowManager =
- getIntf()->p_sys->p_theme->getWindowManager();
- TopWindow* pWin = getWindow();
-
- const Position *pPos = getPosition();
-
- m_pVoutWindow->resize( pPos->getWidth(), pPos->getHeight() );
- m_pVoutWindow->move( pPos->getLeft(), pPos->getTop() );
- }
-}
-
// Detach a voutWindow from a Video Control
void detachVoutWindow( );
- // Update the inner part of the Video Control
- void resizeInnerVout( );
-
// Get TopWindow associated with the video control
virtual TopWindow* getWindow() { return CtrlGeneric::getWindow(); }