diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-03-31 23:10:37 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-04-27 23:18:16 -0400 |
commit | 9d719b99893297bdd1675217ba9a7c8575cc0d80 (patch) | |
tree | 5ae8c449194022d00a3b7e3e2446567d2da7b970 /gdk/gdkdisplay.h | |
parent | 837244809e4ceca2209fbb513c7c71120e6a9231 (diff) | |
download | gtk+-9d719b99893297bdd1675217ba9a7c8575cc0d80.tar.gz |
display: Add new monitor apis
This follows our general direction of moving functionality
from GdkScreen to GdkDisplay.
Diffstat (limited to 'gdk/gdkdisplay.h')
-rw-r--r-- | gdk/gdkdisplay.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h index 6e06cc8586..197b95f621 100644 --- a/gdk/gdkdisplay.h +++ b/gdk/gdkdisplay.h @@ -31,6 +31,7 @@ #include <gdk/gdkevents.h> #include <gdk/gdkdevicemanager.h> #include <gdk/gdkseat.h> +#include <gdk/gdkmonitor.h> G_BEGIN_DECLS @@ -178,6 +179,22 @@ GdkSeat * gdk_display_get_default_seat (GdkDisplay *display); GDK_AVAILABLE_IN_3_20 GList * gdk_display_list_seats (GdkDisplay *display); +GDK_AVAILABLE_IN_3_22 +int gdk_display_get_n_monitors (GdkDisplay *display); +GDK_AVAILABLE_IN_3_22 +GdkMonitor * gdk_display_get_monitor (GdkDisplay *display, + int monitor_num); +GDK_AVAILABLE_IN_3_22 +GdkMonitor * gdk_display_get_primary_monitor (GdkDisplay *display); +GDK_AVAILABLE_IN_3_22 +GdkMonitor * gdk_display_get_monitor_at_point (GdkDisplay *display, + int x, + int y); +GDK_AVAILABLE_IN_3_22 +GdkMonitor * gdk_display_get_monitor_at_window (GdkDisplay *dsplay, + GdkWindow *window); + + G_END_DECLS #endif /* __GDK_DISPLAY_H__ */ |