|
Drag[en]gine Script Module DragonScript 1.32.1
|
Public Member Functions | |
| void | addToCanvas (TextLayout layout, CanvasView canvas, int x, int y) |
| int | getCharCount () |
| int | getFirstChar () |
| int | getHeight () |
| int | getWidth () |
| int | getX () |
| int | getY () |
| TextLayoutLine | new (int first, int count, int width, int height) |
| void | setX (int x) |
| void | setY (int y) |
Line of text in a TextLayout object. All needed information are stored in the text line object. Can add a text canvas representing the line to a view canvas.
| void Dragengine.Utils.TextLayoutLine.addToCanvas | ( | TextLayout | layout, |
| CanvasView | canvas, | ||
| int | x, | ||
| int | y | ||
| ) |
Add text canvas for layout line to view type canvas. The order of the created canvas is set to the count of canvas.
| int Dragengine.Utils.TextLayoutLine.getCharCount | ( | ) |
Number of characters in the line.
| int Dragengine.Utils.TextLayoutLine.getFirstChar | ( | ) |
Index of first character in the line.
| int Dragengine.Utils.TextLayoutLine.getHeight | ( | ) |
Height of the line.
| int Dragengine.Utils.TextLayoutLine.getWidth | ( | ) |
Width of the line.
| int Dragengine.Utils.TextLayoutLine.getX | ( | ) |
X position of the line.
| int Dragengine.Utils.TextLayoutLine.getY | ( | ) |
Y position of the line.
| TextLayoutLine Dragengine.Utils.TextLayoutLine.new | ( | int | first, |
| int | count, | ||
| int | width, | ||
| int | height | ||
| ) |
Creates a new text line with the given parameters.
| void Dragengine.Utils.TextLayoutLine.setX | ( | int | x | ) |
Set x position of text line.
| void Dragengine.Utils.TextLayoutLine.setY | ( | int | y | ) |
Set y position of text line.