events.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * event.h: Windows video output header file
00003  *****************************************************************************
00004  * Copyright (C) 2001-2009 the VideoLAN team
00005  * $Id: 43828f4bef9dba4a821f2b6389e6a46e829e08c1 $
00006  *
00007  * Authors: Gildas Bazin <gbazin@videolan.org>
00008  *          Damien Fouilleul <damienf@videolan.org>
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
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00023  *****************************************************************************/
00024 
00025 #include <vlc_vout_window.h>
00026 
00027 /**
00028  * HWNDs manager.
00029  */
00030 typedef struct event_thread_t event_thread_t;
00031 
00032 typedef struct {
00033     bool use_desktop; /* direct3d */
00034     bool use_overlay; /* directx */
00035 
00036     vout_window_cfg_t win;
00037 } event_cfg_t;
00038 
00039 typedef struct {
00040     vout_window_t *parent_window;
00041     HWND hparent;
00042     HWND hwnd;
00043     HWND hvideownd;
00044     HWND hfswnd;
00045 } event_hwnd_t;
00046 
00047 event_thread_t *EventThreadCreate( vout_display_t *);
00048 void            EventThreadDestroy( event_thread_t * );
00049 int             EventThreadStart( event_thread_t *, event_hwnd_t *, const event_cfg_t * );
00050 void            EventThreadStop( event_thread_t * );
00051 
00052 void            EventThreadMouseAutoHide( event_thread_t * );
00053 void            EventThreadMouseShow( event_thread_t * );
00054 void            EventThreadUpdateTitle( event_thread_t *, const char *psz_fallback );
00055 int             EventThreadGetWindowStyle( event_thread_t * );
00056 void            EventThreadUpdateWindowPosition( event_thread_t *, bool *pb_moved, bool *pb_resized,
00057                                                  int x, int y, int w, int h );
00058 void            EventThreadUpdateSourceAndPlace( event_thread_t *p_event,
00059                                                  const video_format_t *p_source,
00060                                                  const vout_display_place_t *p_place );
00061 void            EventThreadUseOverlay( event_thread_t *, bool b_used );
00062 bool            EventThreadGetAndResetHasMoved( event_thread_t * );
00063 

Generated on Tue May 25 08:05:00 2010 for VLC by  doxygen 1.5.6