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/gdkdisplayprivate.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/gdkdisplayprivate.h')
-rw-r--r-- | gdk/gdkdisplayprivate.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdk/gdkdisplayprivate.h b/gdk/gdkdisplayprivate.h index 1b174d54be..c8bc7124f8 100644 --- a/gdk/gdkdisplayprivate.h +++ b/gdk/gdkdisplayprivate.h @@ -21,6 +21,7 @@ #include "gdkdisplay.h" #include "gdkwindow.h" #include "gdkcursor.h" +#include "gdkmonitor.h" #include "gdkinternals.h" G_BEGIN_DECLS @@ -241,6 +242,11 @@ struct _GdkDisplayClass GdkSeat * (*get_default_seat) (GdkDisplay *display); + int (*get_n_monitors) (GdkDisplay *display); + GdkMonitor * (*get_monitor) (GdkDisplay *display, + int index); + GdkMonitor * (*get_primary_monitor) (GdkDisplay *display); + /* Signals */ void (*opened) (GdkDisplay *display); void (*closed) (GdkDisplay *display, @@ -328,6 +334,10 @@ void gdk_display_add_seat (GdkDisplay *display GdkSeat *seat); void gdk_display_remove_seat (GdkDisplay *display, GdkSeat *seat); +void gdk_display_monitor_added (GdkDisplay *display, + GdkMonitor *monitor); +void gdk_display_monitor_removed (GdkDisplay *display, + GdkMonitor *monitor); G_END_DECLS |