]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-position!
authorJavier Sancho <jsf@jsancho.org>
Sat, 23 May 2020 07:23:58 +0000 (09:23 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sat, 23 May 2020 07:23:58 +0000 (09:23 +0200)
irrlicht.scm
irrlicht/gui.scm

index 1aea1521298d53b06bb912c29d7c5358b1a52de6..8bd94b429d8a7923abb8d8161ffcf058884e8e3c 100644 (file)
                set-max!
                set-md2-animation!
                set-override-color!
-               set-position!
                set-resizable!
                set-rotation!
                set-scale!
 
 ;; Merged methods have to be exported apart
 (re-export draw-all
-           get-position)
+           get-position
+           set-position!)
index 900b680f3466e829c4242bc1b4b4fd1495e2e9df..b0486b8a5d75c4016ad8f42e0b27ab12fc96a37b 100644 (file)
   (let ((setMax (get-irrlicht-proc "setMax" scrollbar)))
     (setMax scrollbar max)))
 
-(export <gui-scrollbar> set-max!)
+(define-method (set-position! (scrollbar <gui-scrollbar>) pos)
+  (let ((setPos (get-irrlicht-proc "setPos" scrollbar)))
+    (setPos scrollbar pos)))
+
+(export <gui-scrollbar> set-max! set-position!)