Expose new Canvas methods to Nasal
Requires corresponding SimGear update
This commit is contained in:
parent
fc842c17f0
commit
3f742c1b1d
1 changed files with 26 additions and 21 deletions
|
@ -559,7 +559,11 @@ naRef initNasalCanvas(naRef globals, naContext c)
|
|||
.method("setFocus", &sc::Element::setFocus)
|
||||
.method("dispatchEvent", &sc::Element::dispatchEvent)
|
||||
.method("getBoundingBox", &sc::Element::getBoundingBox)
|
||||
.method("getTightBoundingBox", &sc::Element::getTightBoundingBox);
|
||||
.method("getTightBoundingBox", &sc::Element::getTightBoundingBox)
|
||||
.method("_posToLocal", &sc::Element::posToLocal)
|
||||
.method("_posFromLocal", &sc::Element::posFromLocal)
|
||||
.method("canvasToLocal", &sc::Element::canvasToLocal)
|
||||
.method("localToCanvas", &sc::Element::localToCanvas);
|
||||
|
||||
NasalGroup::init("canvas.Group")
|
||||
.bases<NasalElement>()
|
||||
|
@ -667,7 +671,8 @@ naRef initNasalCanvas(naRef globals, naContext c)
|
|||
.bases<NasalLayoutItem>()
|
||||
.member("_node_ghost", &elementGetNode<sc::Window>)
|
||||
.method("_getCanvasDecoration", &sc::Window::getCanvasDecoration)
|
||||
.method("setLayout", &sc::Window::setLayout);
|
||||
.method("setLayout", &sc::Window::setLayout)
|
||||
.method("toScreenPosition", &sc::Window::toScreenPosition);
|
||||
|
||||
canvas_module.set("_newWindowGhost", f_createWindow);
|
||||
canvas_module.set("_getDesktopGhost", f_getDesktop);
|
||||
|
|
Loading…
Add table
Reference in a new issue