Drag[en]gine Script Module DragonScript  1.23
Dragengine.Utils.TextLayoutLine Class Reference
Inheritance diagram for Dragengine.Utils.TextLayoutLine:

Public Member Functions

void addToCanvas (TextLayout layout, CanvasView canvas, int x, int y)
 
int getCharCount ()
 
int getFirstChar ()
 
int getHeight ()
 
int getWidth ()
 
int getX ()
 
int getY ()
 
TextLayoutLine new (int first, int count, int width, int height)
 
void setX (int x)
 
void setY (int y)
 

Detailed Description

Line of text in a TextLayout object. All needed information are stored in the text line object. Can add a text canvas representing the line to a view canvas.

Member Function Documentation

◆ addToCanvas()

void Dragengine.Utils.TextLayoutLine.addToCanvas ( TextLayout  layout,
CanvasView  canvas,
int  x,
int  y 
)

Add text canvas for layout line to view type canvas. The order of the created canvas is set to the count of canvas.

◆ getCharCount()

int Dragengine.Utils.TextLayoutLine.getCharCount ( )

Number of characters in the line.

◆ getFirstChar()

int Dragengine.Utils.TextLayoutLine.getFirstChar ( )

Index of first character in the line.

◆ getHeight()

int Dragengine.Utils.TextLayoutLine.getHeight ( )

Height of the line.

◆ getWidth()

int Dragengine.Utils.TextLayoutLine.getWidth ( )

Width of the line.

◆ getX()

int Dragengine.Utils.TextLayoutLine.getX ( )

X position of the line.

◆ getY()

int Dragengine.Utils.TextLayoutLine.getY ( )

Y position of the line.

◆ new()

TextLayoutLine Dragengine.Utils.TextLayoutLine.new ( int  first,
int  count,
int  width,
int  height 
)

Creates a new text line with the given parameters.

◆ setX()

void Dragengine.Utils.TextLayoutLine.setX ( int  x)

Set x position of text line.

◆ setY()

void Dragengine.Utils.TextLayoutLine.setY ( int  y)

Set y position of text line.


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