| 1 | /* |
| 2 | * gdkscreen.h |
| 3 | * |
| 4 | * Copyright 2001 Sun Microsystems Inc. |
| 5 | * |
| 6 | * Erwann Chenede <erwann.chenede@sun.com> |
| 7 | * |
| 8 | * This library is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU Library General Public |
| 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2 of the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Library General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU Library General Public |
| 19 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 20 | */ |
| 21 | |
| 22 | #ifndef __GDK_SCREEN_H__ |
| 23 | #define __GDK_SCREEN_H__ |
| 24 | |
| 25 | #if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION) |
| 26 | #error "Only <gdk/gdk.h> can be included directly." |
| 27 | #endif |
| 28 | |
| 29 | #include <cairo.h> |
| 30 | #include <gdk/gdkversionmacros.h> |
| 31 | #include <gdk/gdktypes.h> |
| 32 | #include <gdk/gdkdisplay.h> |
| 33 | |
| 34 | G_BEGIN_DECLS |
| 35 | |
| 36 | #define GDK_TYPE_SCREEN (gdk_screen_get_type ()) |
| 37 | #define GDK_SCREEN(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_SCREEN, GdkScreen)) |
| 38 | #define GDK_IS_SCREEN(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_SCREEN)) |
| 39 | |
| 40 | |
| 41 | GDK_AVAILABLE_IN_ALL |
| 42 | GType gdk_screen_get_type (void) G_GNUC_CONST; |
| 43 | |
| 44 | GDK_AVAILABLE_IN_ALL |
| 45 | GdkVisual * gdk_screen_get_system_visual (GdkScreen *screen); |
| 46 | GDK_AVAILABLE_IN_ALL |
| 47 | GdkVisual * gdk_screen_get_rgba_visual (GdkScreen *screen); |
| 48 | GDK_AVAILABLE_IN_ALL |
| 49 | gboolean gdk_screen_is_composited (GdkScreen *screen); |
| 50 | |
| 51 | GDK_AVAILABLE_IN_ALL |
| 52 | GdkWindow * gdk_screen_get_root_window (GdkScreen *screen); |
| 53 | GDK_AVAILABLE_IN_ALL |
| 54 | GdkDisplay * gdk_screen_get_display (GdkScreen *screen); |
| 55 | GDK_DEPRECATED_IN_3_22 |
| 56 | gint gdk_screen_get_number (GdkScreen *screen); |
| 57 | GDK_DEPRECATED_IN_3_22 |
| 58 | gint gdk_screen_get_width (GdkScreen *screen); |
| 59 | GDK_DEPRECATED_IN_3_22 |
| 60 | gint gdk_screen_get_height (GdkScreen *screen); |
| 61 | GDK_DEPRECATED_IN_3_22 |
| 62 | gint gdk_screen_get_width_mm (GdkScreen *screen); |
| 63 | GDK_DEPRECATED_IN_3_22 |
| 64 | gint gdk_screen_get_height_mm (GdkScreen *screen); |
| 65 | |
| 66 | GDK_AVAILABLE_IN_ALL |
| 67 | GList * gdk_screen_list_visuals (GdkScreen *screen); |
| 68 | GDK_AVAILABLE_IN_ALL |
| 69 | GList * gdk_screen_get_toplevel_windows (GdkScreen *screen); |
| 70 | GDK_DEPRECATED_IN_3_22 |
| 71 | gchar * gdk_screen_make_display_name (GdkScreen *screen); |
| 72 | |
| 73 | GDK_DEPRECATED_IN_3_22_FOR(gdk_display_get_n_monitors) |
| 74 | gint gdk_screen_get_n_monitors (GdkScreen *screen); |
| 75 | GDK_DEPRECATED_IN_3_22_FOR(gdk_display_get_primary_monitor) |
| 76 | gint gdk_screen_get_primary_monitor (GdkScreen *screen); |
| 77 | GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_geometry) |
| 78 | void gdk_screen_get_monitor_geometry (GdkScreen *screen, |
| 79 | gint monitor_num, |
| 80 | GdkRectangle *dest); |
| 81 | GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_workarea) |
| 82 | void gdk_screen_get_monitor_workarea (GdkScreen *screen, |
| 83 | gint monitor_num, |
| 84 | GdkRectangle *dest); |
| 85 | |
| 86 | GDK_DEPRECATED_IN_3_22_FOR(gdk_display_get_monitor_at_point) |
| 87 | gint gdk_screen_get_monitor_at_point (GdkScreen *screen, |
| 88 | gint x, |
| 89 | gint y); |
| 90 | GDK_DEPRECATED_IN_3_22_FOR(gdk_display_get_monitor_at_window) |
| 91 | gint gdk_screen_get_monitor_at_window (GdkScreen *screen, |
| 92 | GdkWindow *window); |
| 93 | GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_width_mm) |
| 94 | gint gdk_screen_get_monitor_width_mm (GdkScreen *screen, |
| 95 | gint monitor_num); |
| 96 | GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_height_mm) |
| 97 | gint gdk_screen_get_monitor_height_mm (GdkScreen *screen, |
| 98 | gint monitor_num); |
| 99 | GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_model) |
| 100 | gchar * gdk_screen_get_monitor_plug_name (GdkScreen *screen, |
| 101 | gint monitor_num); |
| 102 | GDK_DEPRECATED_IN_3_22_FOR(gdk_monitor_get_scale_factor) |
| 103 | gint gdk_screen_get_monitor_scale_factor (GdkScreen *screen, |
| 104 | gint monitor_num); |
| 105 | |
| 106 | GDK_AVAILABLE_IN_ALL |
| 107 | GdkScreen *gdk_screen_get_default (void); |
| 108 | |
| 109 | GDK_AVAILABLE_IN_ALL |
| 110 | gboolean gdk_screen_get_setting (GdkScreen *screen, |
| 111 | const gchar *name, |
| 112 | GValue *value); |
| 113 | |
| 114 | GDK_AVAILABLE_IN_ALL |
| 115 | void gdk_screen_set_font_options (GdkScreen *screen, |
| 116 | const cairo_font_options_t *options); |
| 117 | GDK_AVAILABLE_IN_ALL |
| 118 | const cairo_font_options_t *gdk_screen_get_font_options (GdkScreen *screen); |
| 119 | |
| 120 | GDK_AVAILABLE_IN_ALL |
| 121 | void gdk_screen_set_resolution (GdkScreen *screen, |
| 122 | gdouble dpi); |
| 123 | GDK_AVAILABLE_IN_ALL |
| 124 | gdouble gdk_screen_get_resolution (GdkScreen *screen); |
| 125 | |
| 126 | GDK_DEPRECATED_IN_3_22 |
| 127 | GdkWindow *gdk_screen_get_active_window (GdkScreen *screen); |
| 128 | GDK_AVAILABLE_IN_ALL |
| 129 | GList *gdk_screen_get_window_stack (GdkScreen *screen); |
| 130 | |
| 131 | G_END_DECLS |
| 132 | |
| 133 | #endif /* __GDK_SCREEN_H__ */ |
| 134 | |