Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Utils.StyledText.Rendering.StyledTextRendering Class Reference

Render styled text information. More...

Inheritance diagram for Dragengine.Utils.StyledText.Rendering.StyledTextRendering:

Public Member Functions

void addElement (STRElement element)
 Add element.
void addToCanvas (CanvasView canvas, Point position)
 Add canvas for each element.
void addToCanvas (CanvasView canvas, Point position, StyledTextDocumentUpdater updater)
void forEachElement (Block ablock)
 Visit elements with block with STRElement as parameter.
STRElement getElementAt (int index)
 Element at index.
int getElementCount ()
 Number of elements.
Point getSize ()
 Size in pixels.
StyledTextRendering new ()
 Create styled text rendering object.
void removeAllElements ()
 Remove all elements.
void setBackgroundColor (Color color)
 Set background color.
void setSize (Point size)
 Set size in pixels.

Detailed Description

Render styled text information.

Member Function Documentation

◆ addElement()

void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.addElement ( STRElement element)

Add element.

References getElementCount().

Referenced by setBackgroundColor().

◆ addToCanvas() [1/2]

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.

Referenced by addToCanvas().

◆ addToCanvas() [2/2]

void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.addToCanvas ( CanvasView canvas,
Point position,
StyledTextDocumentUpdater updater )

◆ forEachElement()

void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.forEachElement ( Block ablock)

Visit elements with block with STRElement as parameter.

References getElementAt().

Referenced by addToCanvas().

◆ getElementAt()

STRElement Dragengine.Utils.StyledText.Rendering.StyledTextRendering.getElementAt ( int index)

Element at index.

Referenced by forEachElement().

◆ getElementCount()

int Dragengine.Utils.StyledText.Rendering.StyledTextRendering.getElementCount ( )

Number of elements.

References setSize().

Referenced by addElement().

◆ getSize()

Point Dragengine.Utils.StyledText.Rendering.StyledTextRendering.getSize ( )

Size in pixels.

Referenced by setSize().

◆ new()

StyledTextRendering Dragengine.Utils.StyledText.Rendering.StyledTextRendering.new ( )

Create styled text rendering object.

References new().

Referenced by new().

◆ removeAllElements()

void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.removeAllElements ( )

Remove all elements.

Referenced by setBackgroundColor().

◆ setBackgroundColor()

void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.setBackgroundColor ( Color color)

Set background color.

References addElement(), and removeAllElements().

Referenced by addToCanvas().

◆ setSize()

void Dragengine.Utils.StyledText.Rendering.StyledTextRendering.setSize ( Point size)

Set size in pixels.

References getSize().

Referenced by getElementCount().


The documentation for this class was generated from the following file: