]> git.sesse.net Git - vlc/blob - modules/gui/skins2/commands/cmd_voutwindow.hpp
skins2: differentiate new and release window commands
[vlc] / modules / gui / skins2 / commands / cmd_voutwindow.hpp
1 /*****************************************************************************
2  * cmd_voutwindow.hpp
3  *****************************************************************************
4  * Copyright (C) 2009 the VideoLAN team
5  * $Id$
6  *
7  * Author: Erwan Tulou      <erwan10 aT videolan doT org >
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef CMD_VOUTWINDOW_HPP
25 #define CMD_VOUTWINDOW_HPP
26
27 #include "cmd_generic.hpp"
28 #include <vlc_vout_window.h>
29
30
31 /// Command to create a vout window
32 class CmdNewVoutWindow: public CmdGeneric
33 {
34 public:
35     /// Create a vout window
36     CmdNewVoutWindow( intf_thread_t *pIntf, vout_window_t *pWnd );
37     virtual ~CmdNewVoutWindow() { }
38     virtual void execute();
39     virtual string getType() const { return "wnd_new"; }
40
41 private:
42     vout_window_t* m_pWnd;
43 };
44
45
46 /// Command to release a vout window
47 class CmdReleaseVoutWindow: public CmdGeneric
48 {
49 public:
50     /// Release a vout window
51     CmdReleaseVoutWindow( intf_thread_t *pIntf, vout_window_t *pWnd );
52     virtual ~CmdReleaseVoutWindow() { }
53     virtual void execute();
54     virtual string getType() const { return "wnd_release"; }
55
56 private:
57     vout_window_t* m_pWnd;
58 };
59
60 #endif