cmd_resize.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * cmd_resize.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: cf89d43375ece67d96ee22769d80a80d8e24cb4f $
00006  *
00007  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
00008  *          Olivier Teulière <ipkiss@via.ecp.fr>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License along
00021  * with this program; if not, write to the Free Software Foundation, Inc.,
00022  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef CMD_RESIZE_HPP
00026 #define CMD_RESIZE_HPP
00027 
00028 #include "cmd_generic.hpp"
00029 #include <vlc_vout_window.h>
00030 
00031 class WindowManager;
00032 class GenericLayout;
00033 class CtrlVideo;
00034 
00035 
00036 /// Command to resize a layout
00037 class CmdResize: public CmdGeneric
00038 {
00039 public:
00040     /// Resize the given layout
00041     CmdResize( intf_thread_t *pIntf, const WindowManager &rWindowManager,
00042                GenericLayout &rLayout, int width, int height );
00043     virtual ~CmdResize() { }
00044     virtual void execute();
00045     virtual string getType() const { return "resize"; }
00046 
00047 private:
00048     const WindowManager &m_rWindowManager;
00049     GenericLayout &m_rLayout;
00050     int m_width, m_height;
00051 };
00052 
00053 
00054 /// Command to resize the vout window
00055 class CmdResizeVout: public CmdGeneric
00056 {
00057 public:
00058     /// Resize the given layout
00059     CmdResizeVout( intf_thread_t *pIntf, vout_window_t* pWnd,
00060                    int width, int height );
00061     virtual ~CmdResizeVout() { }
00062     virtual void execute();
00063     virtual string getType() const { return "resize vout"; }
00064 
00065 private:
00066     vout_window_t* m_pWnd;
00067     int m_width, m_height;
00068 };
00069 
00070 
00071 /// Command to toggle Fullscreen
00072 class CmdSetFullscreen: public CmdGeneric
00073 {
00074 public:
00075     /// Resize the given layout
00076     CmdSetFullscreen( intf_thread_t *pIntf, vout_window_t* pWnd,
00077                       bool fullscreen );
00078     virtual ~CmdSetFullscreen() { }
00079     virtual void execute();
00080     virtual string getType() const { return "toogle fullscreen"; }
00081 
00082 private:
00083     vout_window_t* m_pWnd;
00084     bool m_bFullscreen;
00085 };
00086 
00087 #endif

Generated on Tue May 25 08:04:58 2010 for VLC by  doxygen 1.5.6