]> git.mxchange.org Git - flightgear.git/commitdiff
Nasal: expose canvas::Layout::clear()
authorThomas Geymayer <tomgey@gmail.com>
Sat, 14 Jun 2014 11:21:28 +0000 (13:21 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sat, 14 Jun 2014 11:22:22 +0000 (13:22 +0200)
src/Scripting/NasalCanvas.cxx

index 40039de199a3f9419f8b7fecb098f7216def215b..24839dcd222e1eed51ffb903dd214dea4ec982d7 100644 (file)
@@ -490,7 +490,8 @@ naRef initNasalCanvas(naRef globals, naContext c)
     .method("count", &sc::Layout::count)
     .method("itemAt", &sc::Layout::itemAt)
     .method("takeAt", &sc::Layout::takeAt)
-    .method("removeItem", &sc::Layout::removeItem);
+    .method("removeItem", &sc::Layout::removeItem)
+    .method("clear", &sc::Layout::clear);
 
   NasalBoxLayout::init("canvas.BoxLayout")
     .bases<NasalLayout>()