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

index 1fc0c4f717cca62a5546a4b968c0e6755be0a9d6..738a339d3e49beaa1cba70613cd12f78cedc0f33 100644 (file)
@@ -45,6 +45,7 @@
                <gui-environment>
                <gui-font>
                <gui-image>
+               <gui-scrollbar>
                <gui-skin>
                <gui-static-text>
                <irrlicht-device>
@@ -72,6 +73,7 @@
                add-image!
                add-internal-point!
                add-octree-scene-node!
+               add-scrollbar!
                add-sphere-scene-node!
                add-static-text!
                begin-scene
index 86afd9ca5dd6c775e0aae0d3205a0b486e95cb55..75adff1f8d49a18f8d91f081a17f528310f3023d 100644 (file)
     (let ((addImage (get-irrlicht-proc "addImage" gui-environment parent)))
       (addImage gui-environment image pos use-alpha-channel parent id text))))
 
+(define-method (add-scrollbar! (gui-environment <gui-environment>) horizontal rectangle . rest)
+  (let-keywords rest #f
+        ((parent (make <gui-element>))
+         (id -1))
+    (let ((addScrollBar (get-irrlicht-proc "addScrollBar" gui-environment parent)))
+      (addScrollBar gui-environment horizontal rectangle parent id))))
+
 (define-method (add-static-text! (gui-environment <gui-environment>) text rectangle . rest)
   (let-keywords rest #f
         ((border #f)
   (let ((getSkin (get-irrlicht-proc "getSkin" gui-environment)))
     (getSkin gui-environment)))
 
-(export <gui-environment> add-button! add-image! add-static-text! draw-all get-built-in-font
-        get-font get-skin)
+(export <gui-environment> add-button! add-image! add-scrollbar! add-static-text! draw-all
+        get-built-in-font get-font get-skin)
 
 
 ;; IGUIStaticText
   (irr-class #:init-value "IGUIButton"))
 
 (export <gui-button>)
+
+
+;; IGUIScrollBar
+(define-class <gui-scrollbar> (<gui-element>)
+  (irr-class #:init-value "IGUIScrollBar"))
+
+(export <gui-scrollbar>)