]> git.sesse.net Git - vlc/blob - modules/video_output/msw/events_vo.h
Allocated a direct3d back buffer as large as the whole virtual screen.
[vlc] / modules / video_output / msw / events_vo.h
1 /*****************************************************************************
2  * event.h: Windows video output header file
3  *****************************************************************************
4  * Copyright (C) 2001-2009 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Gildas Bazin <gbazin@videolan.org>
8  *          Damien Fouilleul <damienf@videolan.org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #include <vlc_vout_window.h>
26
27 /**
28  * HWNDs manager.
29  */
30 typedef struct event_thread_t event_thread_t;
31
32 typedef struct {
33     bool use_desktop; /* direct3d */
34     bool use_overlay; /* directx */
35 } event_cfg_t;
36
37 typedef struct {
38     vout_window_t *parent_window;
39     HWND hparent;
40     HWND hwnd;
41     HWND hvideownd;
42     HWND hfswnd;
43 } event_hwnd_t;
44
45 event_thread_t *EventThreadCreate( vout_thread_t *, const vout_window_cfg_t * );
46 void            EventThreadDestroy( event_thread_t * );
47 int             EventThreadStart( event_thread_t *, event_hwnd_t *, const event_cfg_t * );
48 void            EventThreadStop( event_thread_t * );
49
50 void            EventThreadMouseAutoHide( event_thread_t * );
51 void            EventThreadMouseShow( event_thread_t * );
52 void            EventThreadUpdateTitle( event_thread_t *, const char *psz_fallback );
53 unsigned        EventThreadRetreiveChanges( event_thread_t * );
54 int             EventThreadGetWindowStyle( event_thread_t * );
55 void            EventThreadUpdateWindowPosition( event_thread_t *, bool *pb_changed,
56                                                  int x, int y, int w, int h );
57 void            EventThreadUseOverlay( event_thread_t *, bool b_used );