crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.
http://www.crategus.com/books/cl-cffi-gtk
146 stars 33 forks source link

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

Closed anranyicheng closed 3 years ago

anranyicheng commented 4 years ago

(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)))))