1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
143
  
144
  
145
  
146
  
147
  
148
  
149
  
150
  
151
  
152
  
153
  
154
  
155
  
156
  
157
  
158
  
159
  
160
  
161
  
162
  
163
  
164
  
165
  
166
  
167
  
168
  
169
  
170
  
171
  
172
  
173
  
174
  
175
  
176
  
177
  
178
  
179
  
180
  
181
  
182
  
183
  
184
  
185
  
186
  
187
  
188
  
189
  
190
  
191
  
192
  
193
  
194
  
195
  
196
  
197
  
198
  
199
  
200
  
201
  
202
  
203
  
204
  
205
  
206
  
207
  
208
  
209
  
210
  
211
  
212
  
213
  
214
  
215
  
216
  
217
  
218
  
219
  
220
  
221
  
222
  
223
  
224
  
225
  
226
  
227
  
228
  
229
  
230
  
231
  
232
  
233
  
234
  
235
  
236
  
237
  
238
  
239
  
240
  
241
  
242
  
243
  
244
  
245
  
246
  
247
  
248
  
249
  
250
  
251
  
252
  
253
  
254
  
255
  
256
  
257
  
258
  
259
  
/* -*- C -*- */ 
require gtk22; 
class GDK2.Screen; 
inherit G.Object; 
 
//! Properties: 
//! font-options 
//! float resolution 
 
signal composited_changed; 
signal size_changed; 
 
void create() 
//! Gets the default screen. 
{ 
  pgtk2_verify_not_inited(); 
  pgtk2_verify_setup();  
  { 
    GdkScreen *gs; 
 
    gs=gdk_screen_get_default(); 
    THIS->obj=G_OBJECT(gs); 
  } 
  pgtk2_pop_n_elems(args); 
  pgtk2__init_this_object(); 
} 
 
+GDK2.Colormap get_default_colormap() 
//! Gets the default colormap. 
{ 
  pgtk2_verify_inited(); 
  pgtk2_pop_n_elems(args); 
  { 
    GdkColormap *gc; 
 
    gc=gdk_screen_get_default_colormap(GDK_SCREEN(THIS->obj)); 
    push_gdkobject(gc,colormap,0); 
  } 
} 
 
void set_default_colormap(GDK2.Colormap colormap) 
//! Sets the default colormap. 
{ 
  pgtk2_verify_inited(); 
  { 
    struct object *o; 
    gpointer *p; 
 
    get_all_args(NULL,args,"%o",&o); 
    p=get_gdkobject(o,colormap); 
    pgtk2_pop_n_elems(args); 
    if (g_type_is_a(G_TYPE_FROM_INSTANCE(p),g_type_from_name("GdkColormap"))) { 
      gdk_screen_set_default_colormap(GDK_SCREEN(THIS->obj),GDK_COLORMAP(p)); 
    } 
  } 
} 
 
+GDK2.Colormap get_system_colormap() 
//! Gets the system default colormap. 
{ 
  pgtk2_verify_inited(); 
  pgtk2_pop_n_elems(args); 
  { 
    GdkColormap *gc; 
 
    gc=gdk_screen_get_system_colormap(GDK_SCREEN(THIS->obj)); 
    push_gdkobject(gc,colormap,0); 
  } 
} 
 
+GDK2.Visual get_system_visual() 
//! Get the default system visual. 
{ 
  pgtk2_verify_inited(); 
  pgtk2_pop_n_elems(args); 
  { 
    GdkVisual *gv; 
 
    gv=gdk_screen_get_system_visual(GDK_SCREEN(THIS->obj)); 
    push_gobject(gv); 
  } 
} 
 
+GDK2.Colormap get_rgb_colormap() 
//! Gets the preferred colormap for rendering image data. 
{ 
  pgtk2_verify_inited(); 
  pgtk2_pop_n_elems(args); 
  { 
    GdkColormap *gc; 
 
    gc=gdk_screen_get_rgb_colormap(GDK_SCREEN(THIS->obj)); 
    push_gdkobject(gc,colormap,0); 
  } 
} 
 
 
+GDK2.Visual get_rgb_visual() 
//! Get a "preferred visual" chosen by GdkRGB for rendering image data. 
{ 
  pgtk2_verify_inited(); 
  pgtk2_pop_n_elems(args); 
  { 
    GdkVisual *gv; 
 
    gv=gdk_screen_get_rgb_visual(GDK_SCREEN(THIS->obj)); 
    push_gobject(gv); 
  } 
} 
 
require gtk28; 
+GDK2.Colormap get_rgba_colormap() 
//! Gets a colormap to use for creating windows or pixmaps with an alpha 
//! channel. 
{ 
  pgtk2_verify_inited(); 
  pgtk2_pop_n_elems(args); 
  { 
    GdkColormap *gc; 
 
    gc=gdk_screen_get_rgba_colormap(GDK_SCREEN(THIS->obj)); 
    push_gdkobject(gc,colormap,0); 
  } 
} 
 
+GDK2.Visual get_rgba_visual() 
//! Gets a visual to use for creating windows or pixmaps with an alpha 
//! channel. 
{ 
  pgtk2_verify_inited(); 
  pgtk2_pop_n_elems(args); 
  { 
    GdkVisual *gv; 
 
    gv=gdk_screen_get_rgba_visual(GDK_SCREEN(THIS->obj)); 
    push_gobject(gv); 
  } 
} 
endrequire; 
 
require gtk210; 
int is_composited(); 
//! Returns whether windows with an RGBA visual can reasonable be expected 
//! to have their alpha channel drawn correctly on the screen. 
endrequire; 
 
+GDK2.Window get_root_window(); 
//! Gets the root window. 
 
+GDK2.Display get_display(); 
//! Gets the display to which this screen belongs. 
 
int get_number(); 
//! Gets the index of this screen among the screens in the display to which 
//! it belongs. 
 
int get_width(); 
//! Gets the width of the screen in pixels. 
 
int get_height(); 
//! Gets the height in pixels. 
 
int get_width_mm(); 
//! Gets the width in millimeters. 
 
int get_height_mm(); 
//! Returns the height in millimeters. 
 
array list_visuals(?int def) 
//! List the available visuals.  If def is true, return the available visuals 
//! for the default screen. 
{ 
  pgtk2_verify_inited(); 
  { 
    INT_TYPE def=0; 
    GList *gl,*g2; 
    int i=0; 
 
    get_all_args(NULL,args,"%i",&def); 
    if (def) 
      gl=gdk_list_visuals(); 
    else 
      gl=gdk_screen_list_visuals(GDK_SCREEN(THIS->obj)); 
    g2=gl; 
    pgtk2_pop_n_elems(args); 
    while (g2) { 
      push_gobject(g2->data); 
      i++; 
      g2=g_list_next(g2); 
    } 
    f_aggregate(i); 
  } 
} 
 
array get_toplevel_windows() 
//! Returns a list of all toplevel windows known to GDK on the screen. 
{ 
  pgtk2_verify_inited(); 
  pgtk2_pop_n_elems(args); 
  { 
    GList *gl,*g2; 
    int i; 
 
    gl=g2=gdk_screen_get_toplevel_windows(GDK_SCREEN(THIS->obj)); 
    i=0; 
    while (g2) { 
      push_gobject(g2->data); 
      g_object_ref(g2->data); 
      i++; 
      g2=g_list_next(g2); 
    } 
    f_aggregate(i); 
    g_list_free(gl); 
  } 
} 
 
string make_display_name(); 
//! Determines the name to pass to GDK2.Display->open() to get a GDK2.Display 
//! with this screen as the default screen. 
 
int get_n_monitors(); 
//! Returns the number of monitors which this screen consists of. 
 
+GDK2.Rectangle get_monitor_geometry(int num) 
//! Retrieves the GDK2.Rectangle representing the size and position of the 
//! individual monitor within the entire screen area. 
{ 
  pgtk2_verify_inited(); 
  { 
    INT_TYPE a; 
    GdkRectangle *gr; 
 
    get_all_args(NULL,args,"%i",&a); 
    gr=(GdkRectangle *)xalloc(sizeof(GdkRectangle)); 
    gdk_screen_get_monitor_geometry(GDK_SCREEN(THIS->obj),a,gr); 
    pgtk2_pop_n_elems(args); 
    push_gdkobject(gr,rectangle,1); 
  } 
} 
 
int get_monitor_at_point(int x, int y); 
//! Returns the monitor number in which x,y is located. 
 
int get_monitor_at_window(GDK2.Window window); 
//! Returns the number of the monitor in which the largest area of the 
//! bounding rectangle of window resides. 
 
require gtk210; 
float get_resolution(); 
//! Gets the resolution for font handling. 
 
void set_resolution(float dpi); 
//! Sets the resolution for font handling. 
 
+GDK2.Window get_active_window(); 
//! Returns the currently active window. 
endrequire; 
endrequire;