(define-class <gui-environment> (<reference-counted>)
(irr-class #:init-value "IGUIEnvironment"))
+(define-method (add-button! (gui-environment <gui-environment>) rectangle . rest)
+ (let-keywords rest #f
+ ((parent (make <gui-element>))
+ (id -1)
+ (text "")
+ (tooltiptext ""))
+ (let ((addButton (get-irrlicht-proc "addButton" gui-environment parent)))
+ (addButton gui-environment rectangle parent id text tooltiptext))))
+
(define-method (add-image! (gui-environment <gui-environment>) image pos . rest)
(let-keywords rest #f
((use-alpha-channel #t)
(let ((getSkin (get-irrlicht-proc "getSkin" gui-environment)))
(getSkin gui-environment)))
-(export <gui-environment> add-image! add-static-text! draw-all get-built-in-font get-font get-skin)
+(export <gui-environment> add-button! add-image! add-static-text! draw-all get-built-in-font
+ get-font get-skin)
;; IGUIStaticText
(irr-class #:init-value "IGUIFont"))
(export <gui-font>)
+
+
+;; IGUIButton
+(define-class <gui-button> (<gui-element>)
+ (irr-class #:init-value "IGUIButton"))
+
+(export <gui-button>)