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);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2010-12-24 20:54:12 +00:00
|
|
|
gboolean gdk_screen_is_composited (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);
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2002-04-25 22:29:14 +00:00
|
|
|
gint gdk_screen_get_number (GdkScreen *screen);
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2002-04-25 22:29:14 +00:00
|
|
|
gint gdk_screen_get_width (GdkScreen *screen);
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2002-04-25 22:29:14 +00:00
|
|
|
gint gdk_screen_get_height (GdkScreen *screen);
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2002-04-25 22:29:14 +00:00
|
|
|
gint gdk_screen_get_width_mm (GdkScreen *screen);
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2002-04-25 22:29:14 +00:00
|
|
|
gint gdk_screen_get_height_mm (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);
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2002-09-25 15:07:47 +00:00
|
|
|
gchar * gdk_screen_make_display_name (GdkScreen *screen);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_display_get_n_monitors)
|
2011-12-18 19:02:55 +00:00
|
|
|
gint gdk_screen_get_n_monitors (GdkScreen *screen);
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_display_get_primary_monitor)
|
2011-12-18 19:02:55 +00:00
|
|
|
gint gdk_screen_get_primary_monitor (GdkScreen *screen);
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_geometry)
|
2011-12-18 19:02:55 +00:00
|
|
|
void gdk_screen_get_monitor_geometry (GdkScreen *screen,
|
|
|
|
gint monitor_num,
|
|
|
|
GdkRectangle *dest);
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_workarea)
|
2011-12-18 19:02:55 +00:00
|
|
|
void gdk_screen_get_monitor_workarea (GdkScreen *screen,
|
|
|
|
gint monitor_num,
|
2011-12-18 21:04:51 +00:00
|
|
|
GdkRectangle *dest);
|
2011-12-18 19:02:55 +00:00
|
|
|
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_display_get_monitor_at_point)
|
2002-05-01 17:22:54 +00:00
|
|
|
gint gdk_screen_get_monitor_at_point (GdkScreen *screen,
|
2010-12-24 20:54:12 +00:00
|
|
|
gint x,
|
|
|
|
gint y);
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_display_get_monitor_at_window)
|
2002-05-01 17:22:54 +00:00
|
|
|
gint gdk_screen_get_monitor_at_window (GdkScreen *screen,
|
2010-12-24 20:54:12 +00:00
|
|
|
GdkWindow *window);
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_width_mm)
|
2007-12-13 18:27:05 +00:00
|
|
|
gint gdk_screen_get_monitor_width_mm (GdkScreen *screen,
|
|
|
|
gint monitor_num);
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_height_mm)
|
2007-12-13 18:27:05 +00:00
|
|
|
gint gdk_screen_get_monitor_height_mm (GdkScreen *screen,
|
|
|
|
gint monitor_num);
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_model)
|
2007-12-13 18:27:05 +00:00
|
|
|
gchar * gdk_screen_get_monitor_plug_name (GdkScreen *screen,
|
|
|
|
gint monitor_num);
|
2016-10-20 15:59:21 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_scale_factor)
|
2013-01-18 14:47:29 +00:00
|
|
|
gint gdk_screen_get_monitor_scale_factor (GdkScreen *screen,
|
|
|
|
gint monitor_num);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
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_font_options (GdkScreen *screen,
|
2010-12-24 20:54:12 +00:00
|
|
|
const cairo_font_options_t *options);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2005-08-26 18:49:52 +00:00
|
|
|
const cairo_font_options_t *gdk_screen_get_font_options (GdkScreen *screen);
|
2005-08-24 03:29:06 +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
|
|
|
|
2016-10-20 17:44:23 +00:00
|
|
|
GDK_DEPRECATED_IN_3_22
|
2006-03-08 17:02:34 +00:00
|
|
|
GdkWindow *gdk_screen_get_active_window (GdkScreen *screen);
|
2013-03-15 09:58:39 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2006-03-08 17:02:34 +00:00
|
|
|
GList *gdk_screen_get_window_stack (GdkScreen *screen);
|
|
|
|
|
2002-04-25 22:29:14 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2010-12-10 14:46:35 +00:00
|
|
|
#endif /* __GDK_SCREEN_H__ */
|