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
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
|
2002-04-25 22:29:14 +00:00
|
|
|
#ifndef __GDK_SCREEN_H__
|
|
|
|
#define __GDK_SCREEN_H__
|
|
|
|
|
2005-08-24 03:29:06 +00:00
|
|
|
#include <cairo.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
|
|
|
|
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
|
|
|
|
2010-12-11 05:14:53 +00:00
|
|
|
GdkVisual * gdk_screen_get_system_visual (GdkScreen *screen);
|
2005-05-09 22:54:10 +00:00
|
|
|
GdkVisual * gdk_screen_get_rgba_visual (GdkScreen *screen);
|
2010-12-24 20:54:12 +00:00
|
|
|
gboolean gdk_screen_is_composited (GdkScreen *screen);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
|
|
|
GdkWindow * gdk_screen_get_root_window (GdkScreen *screen);
|
|
|
|
GdkDisplay * gdk_screen_get_display (GdkScreen *screen);
|
|
|
|
gint gdk_screen_get_number (GdkScreen *screen);
|
|
|
|
gint gdk_screen_get_width (GdkScreen *screen);
|
|
|
|
gint gdk_screen_get_height (GdkScreen *screen);
|
|
|
|
gint gdk_screen_get_width_mm (GdkScreen *screen);
|
|
|
|
gint gdk_screen_get_height_mm (GdkScreen *screen);
|
|
|
|
|
|
|
|
GList * gdk_screen_list_visuals (GdkScreen *screen);
|
|
|
|
GList * gdk_screen_get_toplevel_windows (GdkScreen *screen);
|
2002-09-25 15:07:47 +00:00
|
|
|
gchar * gdk_screen_make_display_name (GdkScreen *screen);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2002-05-01 17:22:54 +00:00
|
|
|
gint gdk_screen_get_n_monitors (GdkScreen *screen);
|
2009-12-08 17:27:02 +00:00
|
|
|
gint gdk_screen_get_primary_monitor (GdkScreen *screen);
|
2002-05-01 17:22:54 +00:00
|
|
|
void gdk_screen_get_monitor_geometry (GdkScreen *screen,
|
2010-12-24 20:54:12 +00:00
|
|
|
gint monitor_num,
|
|
|
|
GdkRectangle *dest);
|
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);
|
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);
|
2007-12-13 18:27:05 +00:00
|
|
|
gint gdk_screen_get_monitor_width_mm (GdkScreen *screen,
|
|
|
|
gint monitor_num);
|
|
|
|
gint gdk_screen_get_monitor_height_mm (GdkScreen *screen,
|
|
|
|
gint monitor_num);
|
|
|
|
gchar * gdk_screen_get_monitor_plug_name (GdkScreen *screen,
|
|
|
|
gint monitor_num);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
|
|
|
void gdk_screen_broadcast_client_message (GdkScreen *screen,
|
2010-12-24 20:54:12 +00:00
|
|
|
GdkEvent *event);
|
2002-04-25 22:29:14 +00:00
|
|
|
|
2002-06-20 23:59:27 +00:00
|
|
|
GdkScreen *gdk_screen_get_default (void);
|
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
|
|
|
|
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);
|
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
|
|
|
|
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);
|
2005-08-26 18:49:52 +00:00
|
|
|
gdouble gdk_screen_get_resolution (GdkScreen *screen);
|
2005-08-24 03:29:06 +00:00
|
|
|
|
2006-03-08 17:02:34 +00:00
|
|
|
GdkWindow *gdk_screen_get_active_window (GdkScreen *screen);
|
|
|
|
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__ */
|