~gnome3-team/mutter/trunk

« back to all changes in this revision

Viewing changes to src/display.h

  • Committer: rhp
  • Date: 2001-05-30 15:36:31 UTC
  • Revision ID: git-v1:287b6b15d3840d6546bbc55f9dbd7b3d098429c3
...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Metacity X display handler */
 
2
 
 
3
/* 
 
4
 * Copyright (C) 2001 Havoc Pennington
 
5
 * 
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License as
 
8
 * published by the Free Software Foundation; either version 2 of the
 
9
 * License, or (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful, but
 
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * General Public License for more details.
 
15
 * 
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
19
 * 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef META_DISPLAY_H
 
23
#define META_DISPLAY_H
 
24
 
 
25
#include <glib.h>
 
26
#include <Xlib.h>
 
27
#include "eventqueue.h"
 
28
 
 
29
typedef struct _MetaWindow  MetaWindow;
 
30
typedef struct _MetaScreen  MetaScreen;
 
31
typedef struct _MetaDisplay MetaDisplay;
 
32
 
 
33
struct _MetaDisplay
 
34
{
 
35
  char *name;
 
36
  Display *xdisplay;
 
37
  
 
38
  /*< private >*/
 
39
  MetaEventQueue *events;
 
40
  GSList *screens;
 
41
  GHashTable *window_ids;
 
42
};
 
43
 
 
44
gboolean    meta_display_open            (const char  *name);
 
45
void        meta_display_close           (MetaDisplay *display);
 
46
MetaScreen* meta_display_screen_for_root (MetaDisplay *display,
 
47
                                          Window       xroot);
 
48
 
 
49
MetaWindow* meta_display_lookup_window   (MetaDisplay *display,
 
50
                                          Window       xwindow);
 
51
void        meta_display_register_window (MetaDisplay *display,
 
52
                                          MetaWindow  *window);
 
53
 
 
54
 
 
55
 
 
56
#endif