]> git.jsancho.org Git - c-irrlicht.git/blobdiff - src/IGUIEnvironment.cpp
Replace void* with appropiate types
[c-irrlicht.git] / src / IGUIEnvironment.cpp
index b5bc9e1b97ab6306319081463cb645f473fc3d0e..7f92386c26b5f5ad4786829cd79fc686ee481930 100644 (file)
 #include "IGUIEnvironment.h"
 
 extern "C" {
-  void* irr_gui_IGUIEnvironment_addStaticText(void* guienv,
-                                              const char* text,
-                                              const irr_core_rect_s32* rectangle,
-                                              bool border,
-                                              bool wordWrap,
-                                              void* parent,
-                                              int32_t id,
-                                              bool fillBackground)
+  irr_gui_IGUIStaticText*
+  irr_gui_IGUIEnvironment_addStaticText(irr_gui_IGUIEnvironment* guienv,
+                                        const char* text,
+                                        const irr_core_rect_s32* rectangle,
+                                        bool border,
+                                        bool wordWrap,
+                                        irr_gui_IGUIElement* parent,
+                                        int32_t id,
+                                        bool fillBackground)
   {
     // Convert to wide char text
     wchar_t *wtext = (wchar_t*)malloc((strlen(text) + 1) * sizeof(wchar_t));
@@ -55,4 +56,10 @@ extern "C" {
                                                           fillBackground);
     return staticText;
   }
+
+  void
+  irr_gui_IGUIEnvironment_drawAll(irr_gui_IGUIEnvironment* guienv)
+  {
+    ((irr::gui::IGUIEnvironment*)guienv)->drawAll();
+  }
 }