Drag[en]gine Script Module DragonScript  1.21
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. 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...
 

Detailed Description

Render styled text information.

Member Function Documentation

◆ addElement()

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

Add element.

◆ 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.

◆ 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.

◆ getElementAt()

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

Element at index.

◆ getElementCount()

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

Number of elements.

◆ getSize()

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

Size in pixels.

◆ new()

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

Create styled text rendering object.

◆ removeAllElements()

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

Remove all elements.

◆ setBackgroundColor()

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

Set background color.

◆ setSize()

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

Set size in pixels.


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