]> git.sesse.net Git - vlc/blob - modules/video_output/msw/events.h
Fixed invalid mouse cursor state on win32 (close #3675).
[vlc] / modules / video_output / msw / events.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
36     vout_window_cfg_t win;
37 } event_cfg_t;
38
39 typedef struct {
40     vout_window_t *parent_window;
41     HWND hparent;
42     HWND hwnd;
43     HWND hvideownd;
44     HWND hfswnd;
45 } event_hwnd_t;
46
47 event_thread_t *EventThreadCreate( vout_display_t *);
48 void            EventThreadDestroy( event_thread_t * );
49 int             EventThreadStart( event_thread_t *, event_hwnd_t *, const event_cfg_t * );
50 void            EventThreadStop( event_thread_t * );
51
52 void            EventThreadMouseHide( event_thread_t * );
53 void            EventThreadUpdateTitle( event_thread_t *, const char *psz_fallback );
54 int             EventThreadGetWindowStyle( event_thread_t * );
55 void            EventThreadUpdateWindowPosition( event_thread_t *, bool *pb_moved, bool *pb_resized,
56                                                  int x, int y, int w, int h );
57 void            EventThreadUpdateSourceAndPlace( event_thread_t *p_event,
58                                                  const video_format_t *p_source,
59                                                  const vout_display_place_t *p_place );
60 void            EventThreadUseOverlay( event_thread_t *, bool b_used );
61 bool            EventThreadGetAndResetHasMoved( event_thread_t * );
62