1 /*****************************************************************************
2 * intf_gnome.h: Gnome interface
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
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.
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.
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 *****************************************************************************/
23 /*****************************************************************************
24 * intf_sys_t: description and status of Gnome interface
25 *****************************************************************************/
26 typedef struct intf_sys_s
28 /* X11 generic properties */
29 Display * p_display; /* X11 display pointer */
30 int i_screen; /* X11 screen */
32 Atom wm_delete_window;
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) */
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 */
48 /* Mouse pointer properties */
49 boolean_t b_mouse; /* is the mouse pointer displayed ? */
51 /* Gnome part properties */
52 gnome_thread_t * p_gnome;
56 /*****************************************************************************
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 );