From 0fb94ba596765537b4ac3b6b2e097180e7830596 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Thu, 12 Jun 2014 00:44:26 +0200 Subject: [PATCH] Nasal: expose canvas::Layout item remove and get methods. --- src/Scripting/NasalCanvas.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Scripting/NasalCanvas.cxx b/src/Scripting/NasalCanvas.cxx index b59e5b070..1e603a804 100644 --- a/src/Scripting/NasalCanvas.cxx +++ b/src/Scripting/NasalCanvas.cxx @@ -482,7 +482,11 @@ naRef initNasalCanvas(naRef globals, naContext c) NasalLayout::init("canvas.Layout") .bases() - .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()