(in-package :gdk)
-(defcfun (default-screen "gdk_screen_get_default") (g-object gdk-window))
+(defcfun (default-screen "gdk_screen_get_default") (g-object gdk-screen))
(export 'default-screen)
+(defcfun (default-display "gdk_display_get_default") (g-object display))
+(export 'default-display)
+
(defcfun gdk-window-get-events event-mask
(window (g-object gdk-window)))
(defcenum notify-type (:ancestor 0) :virtual :inferior :nonlinear :nonlinear-virtual :unknown)
(export 'notify-type)
-(define-g-object-class "GdkDisplay" display () ())
+(define-g-object-class "GdkDisplay" display ()
+ ((:cffi name display-name (glib:g-string :free-from-foreign nil)
+ "gdk_display_get_name" nil)
+ (:cffi n-screens display-n-screens :int
+ "gdk_display_get_n_screens" nil)
+ (:cffi default-screen display-default-screen (g-object screen)
+ "gdk_display_get_default_screen" nil)))
+
+;gdk_display_get_screen
(define-g-object-class "GdkDisplayManager" display-manager ()
((default-display display-manager-default-display "default-display" "GdkDisplay" t t)))