X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gdk%2Fgdk.objects.lisp;h=b62007e3d0bee9df1fcb738db6f46a987ee126e8;hb=00346cf6cc21a7a1daa85c3c4bfcac0d86d023b2;hp=b3152965be150a11942796490e99b028ad66b970;hpb=edc745e57f66ec57c1fd0761a33d1825218a2853;p=cl-gtk2.git diff --git a/gdk/gdk.objects.lisp b/gdk/gdk.objects.lisp index b315296..b62007e 100644 --- a/gdk/gdk.objects.lisp +++ b/gdk/gdk.objects.lisp @@ -435,6 +435,22 @@ (:bilevel 0) (:full 1)) +(define-g-enum "GdkInterpType" + gdk-interp-type + (:export t :type-initializer "gdk_interp_type_get_type") + (:nearest 0) + (:tiles 1) + (:bilinear 2) + (:hyper 3)) + +(define-g-enum "GdkPixbufRotation" + gdk-pixbuf-rotation + (:export t :type-initializer "gdk_pixbuf_rotation_get_type") + (:none 0) + (:counterclockwise 90) + (:upsidedown 180) + (:clockwise 270)) + (define-g-enum "GdkColorspace" colorspace () :rgb) @@ -693,6 +709,16 @@ do (setf (aref result i) (mem-aref ptr el-type i))) result))) +(defmethod translate-to-foreign (value (type fixed-array)) + (if (null value) + (null-pointer) + (foreign-alloc (fixed-array-element-type type) :count (length value) :initial-contents value))) + +(defmethod free-translated-object (value (type fixed-array) param) + (declare (ignore param)) + (unless (null-pointer-p value) + (foreign-free value))) + (define-g-boxed-cstruct rectangle "GdkRectangle" (x :int :initform 0) (y :int :initform 0) @@ -726,7 +752,7 @@ (axes (fixed-array :double 2)) (state :uint) (button :uint) - (device (g-object device)) + (device (g-object gdk-device)) (x-root :double) (y-root :double)) ((:scroll) event-scroll @@ -735,7 +761,7 @@ (y :double) (state modifier-type) (direction scroll-direction) - (device (g-object device)) + (device (g-object gdk-device)) (x-root :double) (y-root :double)) ((:motion-notify) event-motion