]> git.mxchange.org Git - flightgear.git/commitdiff
Nasal: expose canvas::Layout item remove and get methods.
authorThomas Geymayer <tomgey@gmail.com>
Wed, 11 Jun 2014 22:44:26 +0000 (00:44 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Wed, 11 Jun 2014 22:44:26 +0000 (00:44 +0200)
src/Scripting/NasalCanvas.cxx

index b59e5b07066e7d35e204656cd77979274662eb4a..1e603a804f8129676ca3ff454507f436221d00f8 100644 (file)
@@ -482,7 +482,11 @@ naRef initNasalCanvas(naRef globals, naContext c)
 
   NasalLayout::init("canvas.Layout")
     .bases<NasalLayoutItem>()
-    .method("addItem", &sc::Layout::addItem);
+    .method("addItem", &sc::Layout::addItem)
+    .method("count", &sc::Layout::count)
+    .method("itemAt", &sc::Layout::itemAt)
+    .method("takeAt", &sc::Layout::takeAt)
+    .method("removeItem", &sc::Layout::removeItem);
 
   NasalBoxLayout::init("canvas.BoxLayout")
     .bases<NasalLayout>()