events.h 2.54 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
/*****************************************************************************
 * event.h: Windows video output header file
 *****************************************************************************
 * Copyright (C) 2001-2009 the VideoLAN team
 * $Id$
 *
 * Authors: Gildas Bazin <gbazin@videolan.org>
 *          Damien Fouilleul <damienf@videolan.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

25 26
#include <vlc_vout_window.h>

27 28 29 30 31
/**
 * HWNDs manager.
 */
typedef struct event_thread_t event_thread_t;

32 33 34
typedef struct {
    bool use_desktop; /* direct3d */
    bool use_overlay; /* directx */
35 36

    vout_window_cfg_t win;
37 38 39 40 41 42 43 44 45 46
} event_cfg_t;

typedef struct {
    vout_window_t *parent_window;
    HWND hparent;
    HWND hwnd;
    HWND hvideownd;
    HWND hfswnd;
} event_hwnd_t;

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 51 52
void            EventThreadStop( event_thread_t * );

void            EventThreadMouseAutoHide( event_thread_t * );
Laurent Aimar's avatar
Laurent Aimar committed
53
void            EventThreadMouseShow( event_thread_t * );
54
void            EventThreadUpdateTitle( event_thread_t *, const char *psz_fallback );
55
int             EventThreadGetWindowStyle( event_thread_t * );
56 57
void            EventThreadUpdateWindowPosition( event_thread_t *, bool *pb_changed,
                                                 int x, int y, int w, int h );
58 59 60
void            EventThreadUpdateSourceAndPlace( event_thread_t *p_event,
                                                 const video_format_t *p_source,
                                                 const vout_display_place_t *p_place );
61
void            EventThreadUseOverlay( event_thread_t *, bool b_used );
62 63
bool            EventThreadGetAndResetHasMoved( event_thread_t * );