]> git.mxchange.org Git - flightgear.git/commitdiff
Nasal: expose more methods to Nasal.
authorThomas Geymayer <tomgey@gmail.com>
Tue, 10 Jun 2014 16:44:38 +0000 (18:44 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Tue, 10 Jun 2014 16:44:38 +0000 (18:44 +0200)
src/Scripting/NasalCanvas.cxx

index 2d3783b74cd4b1fc932f69122e52614de6cba3e4..b59e5b07066e7d35e204656cd77979274662eb4a 100644 (file)
@@ -471,7 +471,13 @@ naRef initNasalCanvas(naRef globals, naContext c)
   NasalLayoutItem::init("canvas.LayoutItem")
     .method("getCanvas", &sc::LayoutItem::getCanvas)
     .method("setCanvas", &sc::LayoutItem::setCanvas)
-    .method("getParent", &sc::LayoutItem::getParent);
+    .method("getParent", &sc::LayoutItem::getParent)
+    .method("setParent", &sc::LayoutItem::setParent)
+    .method("sizeHint", &sc::LayoutItem::sizeHint)
+    .method("minimumSize", &sc::LayoutItem::minimumSize)
+    .method("maximumSize", &sc::LayoutItem::maximumSize)
+    .method("setGeometry", &sc::LayoutItem::setGeometry)
+    .method("geometry", &sc::LayoutItem::geometry);
   sc::NasalWidget::setupGhost(canvas_module);
 
   NasalLayout::init("canvas.Layout")
@@ -480,6 +486,7 @@ naRef initNasalCanvas(naRef globals, naContext c)
 
   NasalBoxLayout::init("canvas.BoxLayout")
     .bases<NasalLayout>()
+    .method("setSpacing", &sc::BoxLayout::setSpacing)
     .method("addItem", &f_boxLayoutAddItem)
     .method("addSpacing", &sc::BoxLayout::addSpacing)
     .method("addStretch", &f_boxLayoutAddStretch)