Browse Source

Lua: Add RemoveAll to ElementFormControlSelect. See #88.

Michael Ragazzon 5 years ago
parent
commit
c2b2669426
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Source/Controls/Lua/ElementFormControlSelect.cpp

+ 7 - 0
Source/Controls/Lua/ElementFormControlSelect.cpp

@@ -61,6 +61,12 @@ int ElementFormControlSelectRemove(lua_State* L, ElementFormControlSelect* obj)
     return 0;
     return 0;
 }
 }
 
 
+int ElementFormControlSelectRemoveAll(lua_State* L, ElementFormControlSelect* obj)
+{
+    obj->RemoveAll();
+    return 0;
+}
+
 //getters
 //getters
 int ElementFormControlSelectGetAttroptions(lua_State* L)
 int ElementFormControlSelectGetAttroptions(lua_State* L)
 {
 {
@@ -97,6 +103,7 @@ Rml::Core::Lua::RegType<ElementFormControlSelect> ElementFormControlSelectMethod
 {
 {
     LUAMETHOD(ElementFormControlSelect,Add)
     LUAMETHOD(ElementFormControlSelect,Add)
     LUAMETHOD(ElementFormControlSelect,Remove)
     LUAMETHOD(ElementFormControlSelect,Remove)
+    LUAMETHOD(ElementFormControlSelect,RemoveAll)
     { nullptr, nullptr },
     { nullptr, nullptr },
 };
 };