]> git.mxchange.org Git - flightgear.git/commitdiff
canvas::Text: expose more text/cursor methods to Nasal.
authorThomas Geymayer <tomgey@gmail.com>
Sat, 23 Aug 2014 14:06:33 +0000 (16:06 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sat, 23 Aug 2014 14:06:33 +0000 (16:06 +0200)
src/Scripting/NasalCanvas.cxx

index 7229f3a71aca0d9e391359dda86e0123fe6dab58..ad569817b3a756907b201c5c74859801895fa552 100644 (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