1
0
Fork 0

canvas::Text: expose more text/cursor methods to Nasal.

This commit is contained in:
Thomas Geymayer 2014-08-23 16:06:33 +02:00
parent c3b84856ad
commit 4b59c152ea

View file

@ -501,7 +501,10 @@ naRef initNasalCanvas(naRef globals, naContext c)
.bases<NasalElement>()
.method("heightForWidth", &sc::Text::heightForWidth)
.method("maxWidth", &sc::Text::maxWidth)
.method("getNearestCursor", &sc::Text::getNearestCursor);
.method("lineCount", &sc::Text::lineCount)
.method("lineLength", &sc::Text::lineLength)
.method("getNearestCursor", &sc::Text::getNearestCursor)
.method("getCursorPos", &sc::Text::getCursorPos);
//----------------------------------------------------------------------------
// Layouting