video.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * video.hpp: Embedded video management
00003  *****************************************************************************
00004  * Copyright (C) 1999-2005 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Gildas Bazin <gbazin@videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef _WXVLC_VIDEO_H_
00025 #define _WXVLC_VIDEO_H_
00026 
00027 #include "wxwidgets.hpp"
00028 
00029 namespace wxvlc
00030 {
00031     class VideoWindow: public wxWindow
00032     {
00033     public:
00034         /* Constructor */
00035         VideoWindow( intf_thread_t *_p_intf, wxWindow *p_parent );
00036         virtual ~VideoWindow();
00037 
00038         void *GetWindow( vout_thread_t *p_vout, int *, int *,
00039                          unsigned int *, unsigned int * );
00040         void ReleaseWindow( void * );
00041         int  ControlWindow( void *, int, va_list );
00042 
00043         mtime_t i_creation_date;
00044 
00045     private:
00046         intf_thread_t *p_intf;
00047         vout_thread_t *p_vout;
00048         wxWindow *p_parent;
00049         vlc_mutex_t lock;
00050         bool b_shown;
00051         bool b_auto_size;
00052 
00053         wxWindow *p_child_window;
00054 
00055         wxTimer m_hide_timer;
00056 
00057         void UpdateSize( wxEvent& event );
00058         void UpdateHide( wxEvent& event );
00059         void OnControlEvent( wxCommandEvent& event );
00060         void OnHideTimer( wxTimerEvent& WXUNUSED(event));
00061 
00062         DECLARE_EVENT_TABLE();
00063     };
00064 };
00065 
00066 /* Delegates - Todo: fix this (remove 1st, make 2nd method) */
00067 wxWindow *CreateVideoWindow( intf_thread_t *p_intf, wxWindow *p_parent );
00068 void UpdateVideoWindow( intf_thread_t *p_intf, wxWindow *p_window );
00069 
00070 #endif

Generated on Wed Aug 13 08:02:38 2008 for VLC by  doxygen 1.5.1