From 4b59c152eafb5aa52c4562838090f037c07b65e9 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Sat, 23 Aug 2014 16:06:33 +0200 Subject: [PATCH] canvas::Text: expose more text/cursor methods to Nasal. --- src/Scripting/NasalCanvas.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Scripting/NasalCanvas.cxx b/src/Scripting/NasalCanvas.cxx index 7229f3a71..ad569817b 100644 --- a/src/Scripting/NasalCanvas.cxx +++ b/src/Scripting/NasalCanvas.cxx @@ -501,7 +501,10 @@ naRef initNasalCanvas(naRef globals, naContext c) .bases() .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