(let ((addImage (get-irrlicht-proc "addImage" gui-environment parent)))
(addImage gui-environment image pos use-alpha-channel parent id text))))
+(define-method (add-listbox! (gui-environment <gui-environment>) rectangle . rest)
+ (let-keywords rest #f
+ ((parent (make <gui-element>))
+ (id -1)
+ (draw-background #f))
+ (let ((addListBox (get-irrlicht-proc "addListBox" gui-environment parent)))
+ (addListBox gui-environment rectangle parent id draw-background))))
+
(define-method (add-scrollbar! (gui-environment <gui-environment>) horizontal rectangle . rest)
(let-keywords rest #f
((parent (make <gui-element>))
(let ((getSkin (get-irrlicht-proc "getSkin" gui-environment)))
(getSkin gui-environment)))
-(export <gui-environment> add-button! add-image! add-scrollbar! add-static-text! draw-all
- get-built-in-font get-font get-skin)
+(export <gui-environment> add-button! add-image! add-listbox! add-scrollbar! add-static-text!
+ draw-all get-built-in-font get-font get-skin)
;; IGUIStaticText
(setPos scrollbar pos)))
(export <gui-scrollbar> get-position set-max! set-position!)
+
+
+;; IGUIListBox
+(define-class <gui-listbox> (<gui-element>)
+ (irr-class #:init-value "IGUIListBox"))
+
+(export <gui-listbox>)