crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.

Home Page:http://www.crategus.com/books/cl-cffi-gtk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cl-cffi-gtk/gtk/gtk.window.lisp

anranyicheng opened this issue · comments

commented

(defun gtk-window-get-position (window)
............
(with-foreign-objects ((x :int) (y :int))
(%gtk-window-get-position window x y)
(values (mem-ref x :int)
(mem-ref y :int))))
------->>
(with-foreign-objects ((x :int) (y :int))
(%gtk-window-get-position window x y)
(values (list (mem-ref x :int)
(mem-ref y :int)))))

(defun gtk-window-get-size (window)
..........
(with-foreign-objects ((width :int) (height :int))
(%gtk-window-get-size window width height)
(values (mem-ref width :int) (mem-ref height :int))))
------->>
(with-foreign-objects ((width :int) (height :int))
(%gtk-window-get-size window width height)
(values (list (mem-ref width :int) (mem-ref height :int)))))