2002-04-25 22:29:14 +00:00
|
|
|
/*
|
|
|
|
* gdkscreen.h
|
2010-12-24 20:54:12 +00:00
|
|
|
*
|
|
|
|
* Copyright 2001 Sun Microsystems Inc.
|
2002-04-25 22:29:14 +00:00
|
|
|
*
|
|
|
|
* Erwann Chenede <erwann.chenede@sun.com>
|
|
|
|
*
|
|
|
|
* 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 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
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2002-04-25 22:29:14 +00:00
|
|
|
*/
|
|
|
|
|
2012-12-28 14:57:34 +00:00
|
|
|
#ifndef __GDK_SCREEN_H__
|
|
|
|
#define __GDK_SCREEN_H__
|
|
|
|
|
2009-10-21 18:30:04 +00:00
|
|
|
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
|
2008-05-28 14:01:57 +00:00
|
|
|
#error "Only <gdk/gdk.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2005-08-24 03:29:06 +00:00
|
|
|
#include <cairo.h>
|
2012-02-27 12:07:48 +00:00
|
|
|
#include <gdk/gdkversionmacros.h>
|
2010-10-05 20:11:49 +00:00
|
|
|
#include <gdk/gdktypes.h>
|
|
|
|
#include <gdk/gdkdisplay.h>
|
2002-04-25 22:29:14 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GDK_TYPE_SCREEN (gdk_screen_get_type ())
|
|
|
|
#define GDK_SCREEN(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_SCREEN, GdkScreen))
|
|
|
|
#define GDK_IS_SCREEN(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_SCREEN))
|
2010-12-24 20:54:12 +00:00
|
|
|
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2004-11-28 06:45:52 +00:00
|
|
|
GType gdk_screen_get_type (void) G_GNUC_CONST;
|
2010-12-24 20:54:12 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-12-11 05:14:53 +00:00
|
|
|
GdkVisual * gdk_screen_get_system_visual (GdkScreen *screen);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-05-09 22:54:10 +00:00
|
|
|
GdkVisual * gdk_screen_get_rgba_visual (GdkScreen *screen);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-04-25 22:29:14 +00:00
|
|
|
GdkWindow * gdk_screen_get_root_window (GdkScreen *screen);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-04-25 22:29:14 +00:00
|
|
|
GdkDisplay * gdk_screen_get_display (GdkScreen *screen);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-04-25 22:29:14 +00:00
|
|
|
GList * gdk_screen_list_visuals (GdkScreen *screen);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-04-25 22:29:14 +00:00
|
|
|
GList * gdk_screen_get_toplevel_windows (GdkScreen *screen);
|
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-06-20 23:59:27 +00:00
|
|
|
GdkScreen *gdk_screen_get_default (void);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2002-04-25 22:29:14 +00:00
|
|
|
gboolean gdk_screen_get_setting (GdkScreen *screen,
|
2010-12-24 20:54:12 +00:00
|
|
|
const gchar *name,
|
|
|
|
GValue *value);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-08-26 18:49:52 +00:00
|
|
|
void gdk_screen_set_resolution (GdkScreen *screen,
|
2010-12-24 20:54:12 +00:00
|
|
|
gdouble dpi);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-08-26 18:49:52 +00:00
|
|
|
gdouble gdk_screen_get_resolution (GdkScreen *screen);
|
2005-08-24 03:29:06 +00:00
|
|
|
|
2002-04-25 22:29:14 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2010-12-10 14:46:35 +00:00
|
|
|
#endif /* __GDK_SCREEN_H__ */
|