Finish Gdk/Drawing-primitives and add sever Pango types
[cl-gtk2.git] / gdk / gdk.screen.lisp
blobcbc847e1b1312dd6c40a7f49f7d9331ca5ed4f84
1 (in-package :gdk)
3 (defcfun gdk-screen-get-monitor-geometry :void
4 (screen (g-object screen))
5 (monitor-num :int)
6 (dest (g-boxed-foreign rectangle)))
8 (defun screen-get-monitor-geometry (screen monitor-num)
9 (let ((dest (make-rectangle)))
10 (gdk-screen-get-monitor-geometry screen monitor-num dest)
11 dest))
13 (export 'screen-get-monitor-geometry)
15 (defcfun (screen-get-monitor-at-point "gdk_screen_get_monitor_at_point") :int
16 (screen (g-object screen))
17 (x :int)
18 (y :int))
20 (export 'screen-get-monitor-at-point)
22 (defcfun (screen-get-monitor-at-window "gdk_screen_get_monitor_at_window") :int
23 (screen (g-object screen))
24 (window (g-object gdk-window)))
26 (export 'screen-get-monitor-at-window)
28 (defcfun (screen-get-monitor-height-mm "gdk_screen_get_monitor_height_mm") :int
29 (screen (g-object screen))
30 (monitor-num :int))
32 (defcfun (screen-get-monitor-width-mm "gdk_screen_get_monitor_width_mm") :int
33 (screen (g-object screen))
34 (monitor-num :int))
36 (export '(screen-get-monitor-height-mm screen-get-monitor-width-mm))
38 (defcfun (screen-get-monitor-plug-name "gdk_screen_get_monitor_plug_name") (glib:g-string :free-from-foreign t)
39 (screen (g-object screen))
40 (monitor-num :int))
42 (export 'screen-get-monitor-plug-name)
44 (defcfun (screen-broadcast-client-message "gdk_screen_broadcast_client_message") :void
45 (screen (g-object screen))
46 (event (g-boxed-foreign event)))
48 (export 'screen-broadcast-client-message)
50 (defcfun gdk-screen-get-setting :boolean
51 (screen (g-object screen))
52 (name :string)
53 (value :pointer))
55 (defun screen-get-setting (screen name)
56 (with-foreign-object (value 'g-value)
57 (g-value-zero value)
58 (when (gdk-screen-get-setting screen name value)
59 (prog1 (parse-g-value value)
60 (g-value-unset value)))))
62 (export 'screen-get-setting)
64 (defcfun gdk-spawn-command-line-on-screen :boolean
65 (screen (g-object screen))
66 (command-line :string)
67 (error :pointer))
69 (defun spawn-command-line-on-screen (screen command-line)
70 (glib:with-g-error (err)
71 (gdk-spawn-command-line-on-screen screen command-line err)))
73 (export 'spawn-command-line-on-screen)