Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.CanvasText Class Reference

Canvas text. More...

Inheritance diagram for Dragengine.Scenery.CanvasText:
Dragengine.Scenery.Canvas

Public Member Functions

Constructors
CanvasText new ()
 Create canvas text.
Management
Font getFont ()
 Font or null if not set.
void setFont (Font font)
 Set font or null to unset.
String getText ()
 Text.
void setText (String text)
 Set text.
Color getColor ()
 Text color.
void setColor (Color color)
 Set text color.
Color getBorderColor ()
 Border color.
void setBorderColor (Color color)
 Set border color.
float getBorderThickness ()
 Border thickness in percentage of the font size.
void setBorderThickness (float thickness)
 Set border thickness in percentage of the font size.
float getDilation ()
 Dilation in percentage of the font size.
void setDilation (float dilation)
 Set dilation in percentage of the font size.
bool equals (Object other)
 Canvas is equal to another object.
int hashCode ()
 Hash code for use as dictionary keys.
Public Member Functions inherited from Dragengine.Scenery.Canvas
Point getPosition ()
 Position in parent canvas view units.
void setPosition (Point position)
 Set position in parent canvas view units.
Point getSize ()
 Size in parent canvas view units.
void setSize (Point size)
 Set size in parent canvas view units.
TexMatrix2 getTransform ()
 Transformation matrix affecting the canvas and all its content.
void setTransform (TexMatrix2 transform)
 Set transformation matrix affecting the canvas and all its content.
ColorMatrix getColorTransform ()
 Color transformation matrix affecting the canvas and all its content.
void setColorTransform (ColorMatrix transform)
 Set color transformation matrix affecting the canvas and all its content.
bool getVisible ()
 Canvas is visible.
void setVisible (bool visible)
 Set if canvas is visible.
float getOrder ()
 Render order. Larger renders ontop of smaller.
void setOrder (float order)
 Set render order. Larger renders ontop of smaller.
float getTransparency ()
 Transparency in the range from 0 to 1 where 1 is opaque and 0 fully transparent.
void setTransparency (float transparency)
 Set transparency in the range from 0 to 1 where 1 is opaque and 0 fully transparent.
CanvasBlendMode getBlendMode ()
 Blend mode used to blend canvas over previous content.
void setBlendMode (CanvasBlendMode blendMode)
 Set blend mode used to blend canvas over previous content.
Canvas getMask ()
 Mask canvas or null.
void setMask (Canvas mask)
 Set mask canvas or null.
CanvasView getParentView ()
 Parent canvas view or null.
Canvas getParentMask ()
 Parent canvas mask or null.

Additional Inherited Members

Protected Member Functions inherited from Dragengine.Scenery.Canvas

Detailed Description

Canvas text.

This is a native class.

Member Function Documentation

◆ equals()

bool Dragengine.Scenery.CanvasText.equals ( Object other)

Canvas is equal to another object.

Implements Object.equals(Object).

Returns
true if other is of type canvas and components are equal.

Reimplemented from Dragengine.Scenery.Canvas.

References getDilation().

Referenced by hashCode().

◆ getBorderColor()

Color Dragengine.Scenery.CanvasText.getBorderColor ( )

Border color.

Version
1.35

References setColor().

Referenced by setBorderColor().

◆ getBorderThickness()

float Dragengine.Scenery.CanvasText.getBorderThickness ( )

Border thickness in percentage of the font size.

Version
1.35

A good starting value for balanced border size is 0.075 (7.5%) to 0.1 (10%).

References setBorderColor().

Referenced by setBorderThickness().

◆ getColor()

Color Dragengine.Scenery.CanvasText.getColor ( )

Text color.

Referenced by setColor().

◆ getDilation()

float Dragengine.Scenery.CanvasText.getDilation ( )

Dilation in percentage of the font size.

Version
1.35

Referenced by equals().

◆ getFont()

Font Dragengine.Scenery.CanvasText.getFont ( )

Font or null if not set.

References getFont().

Referenced by getFont().

◆ getText()

String Dragengine.Scenery.CanvasText.getText ( )

Text.

References setFont().

Referenced by setText().

◆ hashCode()

int Dragengine.Scenery.CanvasText.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

Reimplemented from Dragengine.Scenery.Canvas.

References equals(), hashCode(), and setDilation().

Referenced by hashCode().

◆ new()

CanvasText Dragengine.Scenery.CanvasText.new ( )

Create canvas text.

Reimplemented from Dragengine.Scenery.Canvas.

References new().

Referenced by new().

◆ setBorderColor()

void Dragengine.Scenery.CanvasText.setBorderColor ( Color color)

Set border color.

Version
1.35

References getBorderColor().

Referenced by getBorderThickness().

◆ setBorderThickness()

void Dragengine.Scenery.CanvasText.setBorderThickness ( float thickness)

Set border thickness in percentage of the font size.

Version
1.35

A good starting value for balanced border size is 0.075 (7.5%) to 0.1 (10%).

References getBorderThickness().

Referenced by setDilation().

◆ setColor()

void Dragengine.Scenery.CanvasText.setColor ( Color color)

Set text color.

References getColor(), and setText().

Referenced by getBorderColor().

◆ setDilation()

void Dragengine.Scenery.CanvasText.setDilation ( float dilation)

Set dilation in percentage of the font size.

Version
1.35

References setBorderThickness().

Referenced by hashCode().

◆ setFont()

void Dragengine.Scenery.CanvasText.setFont ( Font font)

Set font or null to unset.

Referenced by getText().

◆ setText()

void Dragengine.Scenery.CanvasText.setText ( String text)

Set text.

References getText().

Referenced by setColor().


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