canvas::Text: expose more text/cursor methods to Nasal.
This commit is contained in:
parent
c3b84856ad
commit
4b59c152ea
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue