File: GdkScreen.xs

package info (click to toggle)
libgtk2-perl 2:1.2499-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,668 kB
  • ctags: 594
  • sloc: perl: 22,100; ansic: 122; makefile: 17
file content (241 lines) | stat: -rw-r--r-- 6,614 bytes parent folder | download | duplicates (3)
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
/*
 * Copyright (c) 2003-2005 by the gtk2-perl team (see the file AUTHORS)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
 * Boston, MA  02111-1307  USA.
 *
 * $Id$
 */

#include "gtk2perl.h"

MODULE = Gtk2::Gdk::Screen	PACKAGE = Gtk2::Gdk::Screen	PREFIX = gdk_screen_

BOOT:
	/* the gdk backends override the public GdkScreen with private,
	 * back-end-specific types.  tell gperl_get_object not to 
	 * complain about them.  */
	gperl_object_set_no_warn_unreg_subclass (GDK_TYPE_SCREEN, TRUE);

##  GdkColormap *gdk_screen_get_default_colormap (GdkScreen *screen) 
GdkColormap *
gdk_screen_get_default_colormap (screen)
	GdkScreen *screen

##  void gdk_screen_set_default_colormap (GdkScreen *screen, GdkColormap *colormap) 
void
gdk_screen_set_default_colormap (screen, colormap)
	GdkScreen *screen
	GdkColormap *colormap

##  GdkColormap* gdk_screen_get_system_colormap (GdkScreen *screen) 
GdkColormap*
gdk_screen_get_system_colormap (screen)
	GdkScreen *screen

##  GdkVisual* gdk_screen_get_system_visual (GdkScreen *screen) 
GdkVisual*
gdk_screen_get_system_visual (screen)
	GdkScreen *screen

##  GdkColormap *gdk_screen_get_rgb_colormap (GdkScreen *screen) 
GdkColormap *
gdk_screen_get_rgb_colormap (screen)
	GdkScreen *screen

##  GdkVisual * gdk_screen_get_rgb_visual (GdkScreen *screen) 
GdkVisual *
gdk_screen_get_rgb_visual (screen)
	GdkScreen *screen

##  GdkWindow * gdk_screen_get_root_window (GdkScreen *screen) 
GdkWindow *
gdk_screen_get_root_window (screen)
	GdkScreen *screen

##  GdkDisplay * gdk_screen_get_display (GdkScreen *screen) 
GdkDisplay *
gdk_screen_get_display (screen)
	GdkScreen *screen

##  gint gdk_screen_get_number (GdkScreen *screen) 
gint
gdk_screen_get_number (screen)
	GdkScreen *screen

##  gint gdk_screen_get_width (GdkScreen *screen) 
gint
gdk_screen_get_width (screen)
	GdkScreen *screen

##  gint gdk_screen_get_height (GdkScreen *screen) 
gint
gdk_screen_get_height (screen)
	GdkScreen *screen

##  gint gdk_screen_get_width_mm (GdkScreen *screen) 
gint
gdk_screen_get_width_mm (screen)
	GdkScreen *screen

##  gint gdk_screen_get_height_mm (GdkScreen *screen) 
gint
gdk_screen_get_height_mm (screen)
	GdkScreen *screen

##  GList * gdk_screen_list_visuals (GdkScreen *screen) 
=for apidoc
Returns a list of Gtk2::Gdk::Visual's.
=cut
void
gdk_screen_list_visuals (screen)
	GdkScreen *screen
    PREINIT:
	GList * list, * i;
    PPCODE:
	list = gdk_screen_list_visuals (screen);
	for (i = list ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGdkVisual (i->data)));
	g_list_free (list);

##  GList * gdk_screen_get_toplevel_windows (GdkScreen *screen) 
=for apidoc
Returns a list of Gtk2::Gdk::Window's.
=cut
void
gdk_screen_get_toplevel_windows (screen)
	GdkScreen *screen
    PREINIT:
	GList * list, * i;
    PPCODE:
	list = gdk_screen_get_toplevel_windows (screen);
	for (i = list ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGdkWindow (i->data)));
	g_list_free (list);

##  gchar * gdk_screen_make_display_name (GdkScreen *screen) 
gchar_own *
gdk_screen_make_display_name (screen)
	GdkScreen *screen

##  gint gdk_screen_get_n_monitors (GdkScreen *screen) 
gint
gdk_screen_get_n_monitors (screen)
	GdkScreen *screen

##  void gdk_screen_get_monitor_geometry (GdkScreen *screen, gint monitor_num, GdkRectangle *dest) 
GdkRectangle_copy *
gdk_screen_get_monitor_geometry (screen, monitor_num)
	GdkScreen *screen
	gint monitor_num
    PREINIT:
	GdkRectangle dest;
    CODE:
	gdk_screen_get_monitor_geometry (screen, monitor_num, &dest);
	RETVAL = &dest;
    OUTPUT:
	RETVAL

##  gint gdk_screen_get_monitor_at_point (GdkScreen *screen, gint x, gint y) 
gint
gdk_screen_get_monitor_at_point (screen, x, y)
	GdkScreen *screen
	gint x
	gint y

##  gint gdk_screen_get_monitor_at_window (GdkScreen *screen, GdkWindow *window) 
gint
gdk_screen_get_monitor_at_window (screen, window)
	GdkScreen *screen
	GdkWindow *window

##  void gdk_screen_broadcast_client_message (GdkScreen *screen, GdkEvent *event) 
void
gdk_screen_broadcast_client_message (screen, event)
	GdkScreen *screen
	GdkEvent *event

 ## Gdk owns this object, so no _noinc
##  GdkScreen *gdk_screen_get_default (void) 
GdkScreen_ornull *
gdk_screen_get_default (class)
    C_ARGS:
	/* void */

##  gboolean gdk_screen_get_setting (GdkScreen *screen, const gchar *name, GValue *value) 
SV *
gdk_screen_get_setting (screen, name)
	GdkScreen *screen
	const gchar *name
    PREINIT:
	GValue value = {0,};
    CODE:
	if (!gdk_screen_get_setting (screen, name, &value))
		XSRETURN_UNDEF;
	RETVAL = gperl_sv_from_value (&value);
	g_value_unset (&value);
    OUTPUT:
	RETVAL

#if GTK_CHECK_VERSION (2, 8, 0)

GdkColormap_ornull * gdk_screen_get_rgba_colormap (GdkScreen *screen);

GdkVisual_ornull * gdk_screen_get_rgba_visual (GdkScreen *screen);

#endif

#if GTK_CHECK_VERSION (2, 10, 0)

# gdk_screen_get_font_options and gdk_screen_set_font_options are wrapped in
# GdkCairo.xs.

void gdk_screen_set_resolution (GdkScreen *screen, gdouble dpi);

gdouble gdk_screen_get_resolution (GdkScreen *screen);

GdkWindow * gdk_screen_get_active_window (GdkScreen * screen);

##GList * gdk_screen_get_window_stack (GdkScreen *screen)
void
gdk_screen_get_window_stack (GdkScreen *screen)
    PREINIT:
	GList *list, *i;
    PPCODE:
	list = gdk_screen_get_window_stack (screen);
	for (i = list; i != NULL; i = i->next)
		/* The list owns a reference to the windows. */
		XPUSHs (sv_2mortal (newSVGdkWindow_noinc (i->data)));
	g_list_free (list);

gboolean gdk_screen_is_composited (GdkScreen *screen);

#endif /* 2.10 */

#if GTK_CHECK_VERSION (2, 14, 0)

gint gdk_screen_get_monitor_height_mm (GdkScreen *screen, gint monitor_num);

gint gdk_screen_get_monitor_width_mm (GdkScreen *screen, gint monitor_num);

gchar_own_ornull * gdk_screen_get_monitor_plug_name (GdkScreen *screen, gint monitor_num);

#endif /* 2.14 */

#if GTK_CHECK_VERSION (2, 20, 0)

gint gdk_screen_get_primary_monitor (GdkScreen *screen);

#endif /* 2.20 */