|
Drag[en]gine Script Module DragonScript 1.32.1
|
Classes | |
| enum | Align |
| Text alignment. More... | |
Public Member Functions | |
| void | addToCanvas (CanvasView canvas, int x, int y) |
| Align | getAlignment () |
| bool | getAtLeastOneLine () |
| Color | getColor () |
| Font | getFont () |
| int | getHeight () |
| TextLayoutLine | getLine (int index) |
| int | getLineCount () |
| int | getMaximalWidth () |
| String | getText () |
| int | getWidth () |
| void | layoutText () |
| TextLayout | new (String text, Font font) |
| TextLayout | new (TextLayout layout, int width) |
| void | setAlignment (Align alignment) |
| void | setAtLeastOneLine (bool atLastOneLine) |
| void | setColor (Color color) |
| void | setFont (Font font) |
| void | setMaximalWidth (int width) |
| void | setText (String text) |
Takes a text and formats it to fit into a predefined area. Help creating canvas for rendering.
| void Dragengine.Utils.TextLayout.addToCanvas | ( | CanvasView | canvas, |
| int | x, | ||
| int | y | ||
| ) |
Add canvas for each line. Canvas has to be of type Canvas.VIEW. Caller is responsible to remove all canvas if required.
| Align Dragengine.Utils.TextLayout.getAlignment | ( | ) |
Align.of text.
| bool Dragengine.Utils.TextLayout.getAtLeastOneLine | ( | ) |
No lines are present.
| Color Dragengine.Utils.TextLayout.getColor | ( | ) |
Color.
| Font Dragengine.Utils.TextLayout.getFont | ( | ) |
Font.
| int Dragengine.Utils.TextLayout.getHeight | ( | ) |
Height of the layout text.
| TextLayoutLine Dragengine.Utils.TextLayout.getLine | ( | int | index | ) |
Line by index.
| int Dragengine.Utils.TextLayout.getLineCount | ( | ) |
Number of lines on the layout text.
| int Dragengine.Utils.TextLayout.getMaximalWidth | ( | ) |
Maximal width of the layout text.
| String Dragengine.Utils.TextLayout.getText | ( | ) |
Layout text.
| int Dragengine.Utils.TextLayout.getWidth | ( | ) |
Width of the layout text.
| void Dragengine.Utils.TextLayout.layoutText | ( | ) |
Lay out text.
| TextLayout Dragengine.Utils.TextLayout.new | ( | String | text, |
| Font | font | ||
| ) |
Creates a new TextLayout object.
| TextLayout Dragengine.Utils.TextLayout.new | ( | TextLayout | layout, |
| int | width | ||
| ) |
Creates a new TextLayout object using the attributes stored in another TextLayout object but using a different max width.
| void Dragengine.Utils.TextLayout.setAlignment | ( | Align | alignment | ) |
Set alignement of text.
| void Dragengine.Utils.TextLayout.setAtLeastOneLine | ( | bool | atLastOneLine | ) |
Set if there is at least one one present.
| void Dragengine.Utils.TextLayout.setColor | ( | Color | color | ) |
Set color.
| void Dragengine.Utils.TextLayout.setFont | ( | Font | font | ) |
Set font.
| void Dragengine.Utils.TextLayout.setMaximalWidth | ( | int | width | ) |
Set maximal text width.
| void Dragengine.Utils.TextLayout.setText | ( | String | text | ) |
Set layout text.