Drag[en]gine Script Module DragonScript Script API  1.0
STREText Class Reference

Styled text render text element. More...

Inheritance diagram for STREText:
STRElement

Public Member Functions

void addToCanvas (CanvasView canvas, Point position)
 Add canvas for each element. More...
 
Point calculateSize ()
 Calculate size of element. More...
 
Color getBackgroundColor ()
 Background color. More...
 
Font getFont ()
 Font. More...
 
String getText ()
 Text. More...
 
Color getTextColor ()
 Text color. More...
 
STREText new ()
 Create styled text render text element. More...
 
void setBackgroundColor (Color color)
 Set background color. More...
 
void setFont (Font font)
 Set font. More...
 
void setText (String text)
 Set text. More...
 
void setTextColor (Color color)
 Set text color. More...
 
- Public Member Functions inherited from STRElement
void addToCanvas (CanvasView canvas, Point position)
 Add canvas for each element. More...
 
Point calculateSize ()
 Calculate size of element. More...
 
Point getPosition ()
 Position. More...
 
STRElement new ()
 Create styled text rendering object. More...
 
void setPosition (Point position)
 Set position. More...
 

Detailed Description

Styled text render text element.

Member Function Documentation

§ addToCanvas()

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

§ calculateSize()

Point calculateSize ( )

Calculate size of element.

§ getBackgroundColor()

Color getBackgroundColor ( )

Background color.

§ getFont()

Font getFont ( )

Font.

§ getText()

String getText ( )

Text.

§ getTextColor()

Color getTextColor ( )

Text color.

§ new()

STREText new ( )

Create styled text render text element.

§ setBackgroundColor()

void setBackgroundColor ( Color  color)

Set background color.

§ setFont()

void setFont ( Font  font)

Set font.

§ setText()

void setText ( String  text)

Set text.

§ setTextColor()

void setTextColor ( Color  color)

Set text color.


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