Drag[en]gine Script Module DragonScript
1.21
|
Render styled text information. More...
Public Member Functions | |
void | addElement (STRElement element) |
Add element. More... | |
void | addToCanvas (CanvasView canvas, Point position) |
Add canvas for each element. More... | |
void | addToCanvas (CanvasView canvas, Point position, StyledTextDocumentUpdater updater) |
void | forEachElement (Block ablock) |
Visit elements with block with STRElement as parameter. More... | |
STRElement | getElementAt (int index) |
Element at index. More... | |
int | getElementCount () |
Number of elements. More... | |
Point | getSize () |
Size in pixels. More... | |
StyledTextRendering | new () |
Create styled text rendering object. More... | |
void | removeAllElements () |
Remove all elements. More... | |
void | setBackgroundColor (Color color) |
Set background color. More... | |
void | setSize (Point size) |
Set size in pixels. More... | |
Render styled text information.
void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.addElement | ( | STRElement | element | ) |
Add element.
void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.addToCanvas | ( | CanvasView | canvas, |
Point | position | ||
) |
Add canvas for each element.
Canvas has to be of type Canvas.VIEW. Caller is responsible to remove all canvas if required.
void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.addToCanvas | ( | CanvasView | canvas, |
Point | position, | ||
StyledTextDocumentUpdater | updater | ||
) |
void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.forEachElement | ( | Block | ablock | ) |
Visit elements with block with STRElement as parameter.
STRElement Dragengine.Utils.StyledText.Rendering.StyledTextRendering.getElementAt | ( | int | index | ) |
Element at index.
int Dragengine.Utils.StyledText.Rendering.StyledTextRendering.getElementCount | ( | ) |
Number of elements.
Point Dragengine.Utils.StyledText.Rendering.StyledTextRendering.getSize | ( | ) |
Size in pixels.
StyledTextRendering Dragengine.Utils.StyledText.Rendering.StyledTextRendering.new | ( | ) |
Create styled text rendering object.
void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.removeAllElements | ( | ) |
Remove all elements.
void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.setBackgroundColor | ( | Color | color | ) |
Set background color.
void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.setSize | ( | Point | size | ) |
Set size in pixels.