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

Styled text rendering element. More...

Inheritance diagram for STRElement:
STREImage STREText

Public Member Functions

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

§ getPosition()

Point getPosition ( )

Position.

§ new()

STRElement new ( )

Create styled text rendering object.

§ setPosition()

void setPosition ( Point  position)

Set position.


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