]> git.sesse.net Git - vlc/blob - plugins/gnome/intf_gnome.h
. nouveaux plugins - ne fonctionnent pas encore tous
[vlc] / plugins / gnome / intf_gnome.h
1 /*****************************************************************************
2  * intf_gnome.h: Gnome interface
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  *
6  * Authors:
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  * 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Boston, MA 02111-1307, USA.
21  *****************************************************************************/
22
23 /*****************************************************************************
24  * intf_sys_t: description and status of Gnome interface
25  *****************************************************************************/
26 typedef struct intf_sys_s
27 {
28     /* X11 generic properties */
29     Display *           p_display;                    /* X11 display pointer */
30     int                 i_screen;                              /* X11 screen */
31     Atom                wm_protocols;
32     Atom                wm_delete_window;
33
34     /* Main window properties */
35     Window              window;                               /* main window */
36     GC                  gc;               /* graphic context for main window */
37     int                 i_width;                     /* width of main window */
38     int                 i_height;                   /* height of main window */
39     Colormap            colormap;               /* colormap used (8bpp only) */
40
41     /* Screen saver properties */
42     int                 i_ss_count;              /* enabling/disabling count */
43     int                 i_ss_timeout;                             /* timeout */
44     int                 i_ss_interval;           /* interval between changes */
45     int                 i_ss_blanking;                      /* blanking mode */
46     int                 i_ss_exposure;                      /* exposure mode */
47
48     /* Mouse pointer properties */
49     boolean_t           b_mouse;         /* is the mouse pointer displayed ? */
50
51     /* Gnome part properties */
52     gnome_thread_t *    p_gnome;
53
54 } intf_sys_t;
55
56 /*****************************************************************************
57  * Local prototypes
58  *****************************************************************************/
59 static int  GnomeCreateWindow             ( intf_thread_t *p_intf );
60 static void GnomeDestroyWindow            ( intf_thread_t *p_intf );
61 static void GnomeManageInterface          ( intf_thread_t *p_intf );
62 static gint GnomeManageMain               ( gpointer p_data );
63 static void GnomeManageWindow             ( intf_thread_t *p_intf );
64 static void GnomeEnableScreenSaver        ( intf_thread_t *p_intf );
65 static void GnomeDisableScreenSaver       ( intf_thread_t *p_intf );
66 static void GnomeTogglePointer            ( intf_thread_t *p_intf );
67