+ SCM
+ irr_gui_addButton (SCM wrapped_obj,
+ SCM rectangle,
+ SCM rest)
+ {
+ if (gui_toolbar_p (wrapped_obj))
+ {
+ return irr_gui_IGUIToolBar_addButton (wrapped_obj, rest);
+ }
+ else if (gui_environment_p (wrapped_obj))
+ {
+ return irr_gui_IGUIEnvironment_addButton (wrapped_obj, rectangle, rest);
+ }
+ else
+ {
+ scm_error (scm_arg_type_key, NULL, "Cannot add button to object: ~S",
+ scm_list_1 (wrapped_obj), scm_list_1 (wrapped_obj));
+ }
+ }
+