1
0
Fork 0

Nasal: expose canvas::Layout item remove and get methods.

This commit is contained in:
Thomas Geymayer 2014-06-12 00:44:26 +02:00
parent 53c0454931
commit 0fb94ba596

View 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>()