#include <vlc_keys.h>
-
-int VoutWindow::count = 0;
-
VoutWindow::VoutWindow( intf_thread_t *pIntf, vout_window_t* pWnd,
int width, int height, GenericWindow* pParent ) :
GenericWindow( pIntf, 0, 0, false, false, pParent,
GenericWindow::VoutWindow ),
m_pWnd( pWnd ), original_width( width ), original_height( height ),
- m_pParentWindow( pParent ), m_pCtrlVideo( NULL ), m_bFullscreen( false )
+ m_pParentWindow( pParent ), m_pCtrlVideo( NULL )
{
- // counter for debug
- count++;
-
if( m_pWnd )
vlc_object_hold( m_pWnd );
}
{
if( m_pWnd )
vlc_object_release( m_pWnd );
-
- count--;
- msg_Dbg( getIntf(), "VoutWindow count = %d", count );
}
}
-void VoutWindow::setFullscreen( bool b_fullscreen )
-{
- /*TODO: fullscreen implementation */
-}
-
-
void VoutWindow::processEvent( EvtKey &rEvtKey )
{
// Only do the action when the key is down
int width, int height, GenericWindow* pParent = NULL );
virtual ~VoutWindow();
- // counter used for debugging purpose
- static int count;
-
/// Make some functions public
//@{
using GenericWindow::show;
virtual void setCtrlVideo( CtrlVideo* pCtrlVideo );
virtual CtrlVideo* getCtrlVideo( ) { return m_pCtrlVideo; }
- /// toggle fullscreen mode
- virtual void setFullscreen( bool b_fullscreen );
- virtual bool isFullscreen() { return m_bFullscreen; }
-
/// get original size of vout
virtual int getOriginalWidth( ) { return original_width; }
virtual int getOriginalHeight( ) { return original_height; }
int original_width;
int original_height;
- /// fulscreen mode indicator
- bool m_bFullscreen;
-
/// VideoControl attached to it
CtrlVideo* m_pCtrlVideo;