From: Thomas Geymayer Date: Tue, 10 Jun 2014 16:44:38 +0000 (+0200) Subject: Nasal: expose more methods to Nasal. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c0eda4a47c7bd7f5f51d886b53e63dbe817bce9a;p=flightgear.git Nasal: expose more methods to Nasal. --- diff --git a/src/Scripting/NasalCanvas.cxx b/src/Scripting/NasalCanvas.cxx index 2d3783b74..b59e5b070 100644 --- a/src/Scripting/NasalCanvas.cxx +++ b/src/Scripting/NasalCanvas.cxx @@ -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() + .method("setSpacing", &sc::BoxLayout::setSpacing) .method("addItem", &f_boxLayoutAddItem) .method("addSpacing", &sc::BoxLayout::addSpacing) .method("addStretch", &f_boxLayoutAddStretch)