Small cleanup.
This commit is contained in:
parent
c242809a3c
commit
3d3475e965
2 changed files with 3 additions and 6 deletions
|
@ -95,12 +95,7 @@ CanvasWidget::CanvasWidget( int x, int y,
|
||||||
CanvasWidget::~CanvasWidget()
|
CanvasWidget::~CanvasWidget()
|
||||||
{
|
{
|
||||||
if( _canvas )
|
if( _canvas )
|
||||||
// TODO check if really not in use anymore
|
_canvas->destroy();
|
||||||
_canvas->getProps()
|
|
||||||
->getParent()
|
|
||||||
->removeChild( _canvas->getProps()->getName(),
|
|
||||||
_canvas->getProps()->getIndex(),
|
|
||||||
false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Old versions of PUI are missing this defines...
|
// Old versions of PUI are missing this defines...
|
||||||
|
|
|
@ -181,6 +181,8 @@ naRef initNasalCanvas(naRef globals, naContext c, naRef gcSave)
|
||||||
.member("screenY", &sc::MouseEvent::getScreenY)
|
.member("screenY", &sc::MouseEvent::getScreenY)
|
||||||
.member("clientX", &sc::MouseEvent::getClientX)
|
.member("clientX", &sc::MouseEvent::getClientX)
|
||||||
.member("clientY", &sc::MouseEvent::getClientY)
|
.member("clientY", &sc::MouseEvent::getClientY)
|
||||||
|
.member("localX", &sc::MouseEvent::getLocalX)
|
||||||
|
.member("localY", &sc::MouseEvent::getLocalY)
|
||||||
.member("deltaX", &sc::MouseEvent::getDeltaX)
|
.member("deltaX", &sc::MouseEvent::getDeltaX)
|
||||||
.member("deltaY", &sc::MouseEvent::getDeltaY)
|
.member("deltaY", &sc::MouseEvent::getDeltaY)
|
||||||
.member("click_count", &sc::MouseEvent::getCurrentClickCount);
|
.member("click_count", &sc::MouseEvent::getCurrentClickCount);
|
||||||
|
|
Loading…
Reference in a new issue