]> git.mxchange.org Git - flightgear.git/commitdiff
Nasal: expose canvas::Text::maxWidth.
authorThomas Geymayer <tomgey@gmail.com>
Tue, 17 Jun 2014 15:02:10 +0000 (17:02 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Tue, 17 Jun 2014 15:02:10 +0000 (17:02 +0200)
src/Scripting/NasalCanvas.cxx

index 24839dcd222e1eed51ffb903dd214dea4ec982d7..ee1b3dad19ffe2ab0b54fd2b273828b7e6e574f5 100644 (file)
@@ -464,6 +464,7 @@ naRef initNasalCanvas(naRef globals, naContext c)
   NasalText::init("canvas.Text")
     .bases<NasalElement>()
     .method("heightForWidth", &sc::Text::heightForWidth)
+    .method("maxWidth", &sc::Text::maxWidth)
     .method("getNearestCursor", &sc::Text::getNearestCursor);
 
   //----------------------------------------------------------------------------