<gui-scrollbar>
<gui-skin>
<gui-static-text>
+ <gui-window>
<irrlicht-device>
<key-map>
<material>
add-file-archive!
add-image!
add-internal-point!
+ add-item!
add-listbox!
add-octree-scene-node!
add-scrollbar!
add-sphere-scene-node!
add-static-text!
+ add-window!
begin-scene
close-device
create-device
id fill-background)))
(mem-wrapped static-text))))
+(define-method (add-window! (gui-environment <gui-environment>) rectangle . rest)
+ (let-keywords rest #f
+ ((modal #f)
+ (text "")
+ (parent (make <gui-element>))
+ (id -1))
+ (let* ((addWindow (get-irrlicht-proc "addWindow" gui-environment parent))
+ (window (addWindow gui-environment rectangle modal text parent id)))
+ (mem-wrapped window))))
+
(define-method (draw-all (gui-environment <gui-environment>))
((get-irrlicht-proc "drawAll" gui-environment)
gui-environment))
(getSkin gui-environment)))
(export <gui-environment> add-button! add-editbox! add-image! add-listbox! add-scrollbar!
- add-static-text! draw-all get-built-in-font get-font get-skin)
+ add-static-text! add-window! draw-all get-built-in-font get-font get-skin)
;; IGUIStaticText
(define-class <gui-listbox> (<gui-element>)
(irr-class #:init-value "IGUIListBox"))
-(export <gui-listbox>)
+(define-method (add-item! (listbox <gui-listbox>) text)
+ (let ((addItem (get-irrlicht-proc "addItem" listbox)))
+ (addItem listbox text)))
+
+(export <gui-listbox> add-item!)
;; IGUIEditBox
(irr-class #:init-value "IGUIEditBox"))
(export <gui-editbox>)
+
+
+;; IGUIWindow
+(define-class <gui-window> (<gui-element>)
+ (irr-class #:init-value "IGUIWindow"))
+
+(export <gui-window>)
DEFINE_GSUBR ("IGUIListBox_getID", 1, 0, 0, IGUIElement_getID<gui::IGUIListBox*>);
DEFINE_GSUBR ("IGUIScrollBar_getID", 1, 0, 0, IGUIElement_getID<gui::IGUIScrollBar*>);
DEFINE_GSUBR ("IGUIStaticText_getID", 1, 0, 0, IGUIElement_getID<gui::IGUIStaticText*>);
+ DEFINE_GSUBR ("IGUIWindow_getID", 1, 0, 0, IGUIElement_getID<gui::IGUIWindow*>);
}
IGUIEnvironment_addScrollBar<gui::IGUIElement*>);
DEFINE_GSUBR ("IGUIEnvironment_addStaticText_IGUIElement", 8, 0, 0,
IGUIEnvironment_addStaticText<gui::IGUIElement*>);
+ DEFINE_GSUBR ("IGUIEnvironment_addStaticText_IGUIWindow", 8, 0, 0,
+ IGUIEnvironment_addStaticText<gui::IGUIWindow*>);
DEFINE_GSUBR ("IGUIEnvironment_addWindow_IGUIElement", 6, 0, 0,
IGUIEnvironment_addWindow<gui::IGUIElement*>);
DEFINE_GSUBR ("IGUIEnvironment_drawAll", 1, 0, 0, IGUIEnvironment_drawAll);