Drag[en]gine Script Module DragonScript  1.21
Dragengine.Gui.CanvasPaint Class Reference

Canvas paint. More...

Inheritance diagram for Dragengine.Gui.CanvasPaint:
Dragengine.Gui.Canvas

Public Member Functions

Constructors
CanvasPaint new ()
 Create canvas paint. More...
 
Management
CanvasPaintShape getShapeType ()
 Shape type. More...
 
void setShapeType (CanvasPaintShape shapeType)
 Set shape type. More...
 
Color getLineColor ()
 Line color. More...
 
void setLineColor (Color color)
 Set line color. More...
 
Color getFillColor ()
 Fill color. More...
 
void setFillColor (Color color)
 Set fill color. More...
 
float getThickness ()
 Line thickness in units. More...
 
void setThickness (float thickness)
 Line thickness in units. More...
 
float getRoundCornerX ()
 Round corner in X direction as percentage. More...
 
void setRoundCornerX (float roundCorner)
 Set round corner in X direction as percentage. More...
 
float getRoundCornerY ()
 Round corner in Y direction as percentage. More...
 
void setRoundCornerY (float roundCorner)
 Set round corner in Y direction as percentage. More...
 
float getStartAngle ()
 Start angle in degrees from 0 to 360. More...
 
void setStartAngle (float angle)
 Set start angle in degrees from 0 to 360. More...
 
float getEndAngle ()
 End angle in degrees from 0 to 360. More...
 
void setEndAngle (float angle)
 Set end angle in degrees from 0 to 360. More...
 
int getPointCount ()
 Number of points. More...
 
Point getPointAt (int index)
 Point at position. More...
 
void addPoint (Point point)
 Add a point. More...
 
void removeAllPoints ()
 Remove all points. More...
 
bool equals (Object other)
 Canvas is equal to another object. More...
 
int hashCode ()
 Hash code for use as dictionary keys. More...
 
- Public Member Functions inherited from Dragengine.Gui.Canvas
Point getPosition ()
 Position in parent canvas view units. More...
 
void setPosition (Point position)
 Set position in parent canvas view units. More...
 
Point getSize ()
 Size in parent canvas view units. More...
 
void setSize (Point size)
 Set size in parent canvas view units. More...
 
TexMatrix2 getTransform ()
 Transformation matrix affecting the canvas and all its content. More...
 
void setTransform (TexMatrix2 transform)
 Set transformation matrix affecting the canvas and all its content. More...
 
ColorMatrix getColorTransform ()
 Color transformation matrix affecting the canvas and all its content. More...
 
void setColorTransform (ColorMatrix transform)
 Set color transformation matrix affecting the canvas and all its content. More...
 
bool getVisible ()
 Canvas is visible. More...
 
void setVisible (bool visible)
 Set if canvas is visible. More...
 
float getOrder ()
 Render order. Larger renders ontop of smaller. More...
 
void setOrder (float order)
 Set render order. Larger renders ontop of smaller. More...
 
float getTransparency ()
 Transparency in the range from 0 to 1 where 1 is opaque and 0 fully transparent. More...
 
void setTransparency (float transparency)
 Set transparency in the range from 0 to 1 where 1 is opaque and 0 fully transparent. More...
 
CanvasBlendMode getBlendMode ()
 Blend mode used to blend canvas over previous content. More...
 
void setBlendMode (CanvasBlendMode blendMode)
 Set blend mode used to blend canvas over previous content. More...
 
Canvas getMask ()
 Mask canvas or null. More...
 
void setMask (Canvas mask)
 Set mask canvas or null. More...
 
CanvasView getParentView ()
 Parent canvas view or null. More...
 
Canvas getParentMask ()
 Parent canvas mask or null. More...
 

Additional Inherited Members

Constructors

Detailed Description

Canvas paint.

This is a native class.

Member Function Documentation

◆ addPoint()

void Dragengine.Gui.CanvasPaint.addPoint ( Point  point)

Add a point.

◆ equals()

bool Dragengine.Gui.CanvasPaint.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.Gui.Canvas.

◆ getEndAngle()

float Dragengine.Gui.CanvasPaint.getEndAngle ( )

End angle in degrees from 0 to 360.

Used by estEllipse and estPie shape type. Angle is measured clock wise.

◆ getFillColor()

Color Dragengine.Gui.CanvasPaint.getFillColor ( )

Fill color.

◆ getLineColor()

Color Dragengine.Gui.CanvasPaint.getLineColor ( )

Line color.

◆ getPointAt()

Point Dragengine.Gui.CanvasPaint.getPointAt ( int  index)

Point at position.

◆ getPointCount()

int Dragengine.Gui.CanvasPaint.getPointCount ( )

Number of points.

◆ getRoundCornerX()

float Dragengine.Gui.CanvasPaint.getRoundCornerX ( )

Round corner in X direction as percentage.

Used by estRectangle shape type. Value of 0 indicates no non-round corners while value of 1 indicates fully round corners (aka ellipse).

◆ getRoundCornerY()

float Dragengine.Gui.CanvasPaint.getRoundCornerY ( )

Round corner in Y direction as percentage.

Used by estRectangle shape type. Value of 0 indicates no non-round corners while value of 1 indicates fully round corners (aka ellipse).

◆ getShapeType()

CanvasPaintShape Dragengine.Gui.CanvasPaint.getShapeType ( )

Shape type.

◆ getStartAngle()

float Dragengine.Gui.CanvasPaint.getStartAngle ( )

Start angle in degrees from 0 to 360.

Used by estEllipse and estPie shape type. Angle is measured clock wise.

◆ getThickness()

float Dragengine.Gui.CanvasPaint.getThickness ( )

Line thickness in units.

◆ hashCode()

int Dragengine.Gui.CanvasPaint.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

Reimplemented from Dragengine.Gui.Canvas.

◆ new()

CanvasPaint Dragengine.Gui.CanvasPaint.new ( )

Create canvas paint.

Reimplemented from Dragengine.Gui.Canvas.

◆ removeAllPoints()

void Dragengine.Gui.CanvasPaint.removeAllPoints ( )

Remove all points.

◆ setEndAngle()

void Dragengine.Gui.CanvasPaint.setEndAngle ( float  angle)

Set end angle in degrees from 0 to 360.

Used by estEllipse and estPie shape type. Angle is measured clock wise.

◆ setFillColor()

void Dragengine.Gui.CanvasPaint.setFillColor ( Color  color)

Set fill color.

◆ setLineColor()

void Dragengine.Gui.CanvasPaint.setLineColor ( Color  color)

Set line color.

◆ setRoundCornerX()

void Dragengine.Gui.CanvasPaint.setRoundCornerX ( float  roundCorner)

Set round corner in X direction as percentage.

Used by estRectangle shape type. Value of 0 indicates no non-round corners while value of 1 indicates fully round corners (aka ellipse).

◆ setRoundCornerY()

void Dragengine.Gui.CanvasPaint.setRoundCornerY ( float  roundCorner)

Set round corner in Y direction as percentage.

Used by estRectangle shape type. Value of 0 indicates no non-round corners while value of 1 indicates fully round corners (aka ellipse).

◆ setShapeType()

void Dragengine.Gui.CanvasPaint.setShapeType ( CanvasPaintShape  shapeType)

Set shape type.

◆ setStartAngle()

void Dragengine.Gui.CanvasPaint.setStartAngle ( float  angle)

Set start angle in degrees from 0 to 360.

Used by estEllipse and estPie shape type. Angle is measured clock wise.

◆ setThickness()

void Dragengine.Gui.CanvasPaint.setThickness ( float  thickness)

Line thickness in units.


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