1 /*****************************************************************************
2 * event.h: Windows video output header file
3 *****************************************************************************
4 * Copyright (C) 2001-2009 the VideoLAN team
7 * Authors: Gildas Bazin <gbazin@videolan.org>
8 * Damien Fouilleul <damienf@videolan.org>
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.
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.
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 *****************************************************************************/
25 #include <vlc_vout_window.h>
30 typedef struct event_thread_t event_thread_t;
33 bool use_desktop; /* direct3d */
34 bool use_overlay; /* directx */
36 vout_window_cfg_t win;
40 vout_window_t *parent_window;
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 * );
52 void EventThreadMouseAutoHide( event_thread_t * );
53 void EventThreadMouseShow( event_thread_t * );
54 void EventThreadUpdateTitle( event_thread_t *, const char *psz_fallback );
55 int EventThreadGetWindowStyle( event_thread_t * );
56 void EventThreadUpdateWindowPosition( event_thread_t *, bool *pb_changed,
57 int x, int y, int w, int h );
58 void EventThreadUpdateSourceAndPlace( event_thread_t *p_event,
59 const video_format_t *p_source,
60 const vout_display_place_t *p_place );
61 void EventThreadUseOverlay( event_thread_t *, bool b_used );
62 bool EventThreadGetAndResetHasMoved( event_thread_t * );