1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 2002 Hans Breuer
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 #include "gdkprivate-win32.h"
23 static GdkColormap *default_colormap = NULL;
26 gdk_screen_get_display (GdkScreen *screen)
32 gdk_screen_get_root_window (GdkScreen *screen)
34 return _gdk_parent_root;
38 gdk_screen_get_default_colormap (GdkScreen *screen)
40 return default_colormap;
44 gdk_screen_set_default_colormap (GdkScreen *screen,
45 GdkColormap *colormap)
47 GdkColormap *old_colormap;
49 g_return_if_fail (GDK_IS_SCREEN (screen));
50 g_return_if_fail (GDK_IS_COLORMAP (colormap));
52 old_colormap = default_colormap;
54 default_colormap = g_object_ref (colormap);
57 g_object_unref (old_colormap);
61 gdk_screen_get_n_monitors (GdkScreen *screen)
63 g_return_val_if_fail (GDK_IS_SCREEN (screen), 1);
69 gdk_screen_get_monitor_geometry (GdkScreen *screen,
75 dest->width = gdk_screen_width ();
76 dest->height = gdk_screen_height ();
80 gdk_screen_get_number (GdkScreen *screen)
82 g_return_val_if_fail (GDK_IS_SCREEN (screen), 0);
88 _gdk_windowing_substitute_screen_number (const gchar *display_name,
91 return g_strdup (display_name);
95 gdk_screen_make_display_name (GdkScreen *screen)