Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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)

Public Attributes

int pFirstChar

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.

References addToCanvas(), getX(), getY(), new(), pFirstChar, setX(), and setY().

Referenced by addToCanvas().

◆ getCharCount()

int Dragengine.Utils.TextLayoutLine.getCharCount ( )

Number of characters in the line.

Referenced by getX().

◆ getFirstChar()

int Dragengine.Utils.TextLayoutLine.getFirstChar ( )

Index of first character in the line.

References pFirstChar.

Referenced by getHeight().

◆ getHeight()

int Dragengine.Utils.TextLayoutLine.getHeight ( )

Height of the line.

References getFirstChar(), and pFirstChar.

Referenced by setY().

◆ getWidth()

int Dragengine.Utils.TextLayoutLine.getWidth ( )

Width of the line.

Referenced by setX().

◆ getX()

int Dragengine.Utils.TextLayoutLine.getX ( )

X position of the line.

References getCharCount().

Referenced by addToCanvas().

◆ getY()

int Dragengine.Utils.TextLayoutLine.getY ( )

Y position of the line.

Referenced by addToCanvas().

◆ new()

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

Creates a new text line with the given parameters.

References new().

Referenced by addToCanvas(), and new().

◆ setX()

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

Set x position of text line.

References getWidth().

Referenced by addToCanvas().

◆ setY()

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

Set y position of text line.

References getHeight().

Referenced by addToCanvas().

Member Data Documentation

◆ pFirstChar

int Dragengine.Utils.TextLayoutLine.pFirstChar

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