Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.CanvasPaint Class Reference

Canvas paint. More...

Inheritance diagram for Dragengine.Scenery.CanvasPaint:
Dragengine.Scenery.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.Scenery.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.Scenery.CanvasPaint.addPoint ( Point  point)

Add a point.

◆ equals()

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

◆ getEndAngle()

float Dragengine.Scenery.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.Scenery.CanvasPaint.getFillColor ( )

Fill color.

◆ getLineColor()

Color Dragengine.Scenery.CanvasPaint.getLineColor ( )

Line color.

◆ getPointAt()

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

Point at position.

◆ getPointCount()

int Dragengine.Scenery.CanvasPaint.getPointCount ( )

Number of points.

◆ getRoundCornerX()

float Dragengine.Scenery.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.Scenery.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.Scenery.CanvasPaint.getShapeType ( )

Shape type.

◆ getStartAngle()

float Dragengine.Scenery.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.Scenery.CanvasPaint.getThickness ( )

Line thickness in units.

◆ hashCode()

int Dragengine.Scenery.CanvasPaint.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

Reimplemented from Dragengine.Scenery.Canvas.

◆ new()

CanvasPaint Dragengine.Scenery.CanvasPaint.new ( )

Create canvas paint.

Reimplemented from Dragengine.Scenery.Canvas.

◆ removeAllPoints()

void Dragengine.Scenery.CanvasPaint.removeAllPoints ( )

Remove all points.

◆ setEndAngle()

void Dragengine.Scenery.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.Scenery.CanvasPaint.setFillColor ( Color  color)

Set fill color.

◆ setLineColor()

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

Set line color.

◆ setRoundCornerX()

void Dragengine.Scenery.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.Scenery.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.Scenery.CanvasPaint.setShapeType ( CanvasPaintShape  shapeType)

Set shape type.

◆ setStartAngle()

void Dragengine.Scenery.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.Scenery.CanvasPaint.setThickness ( float  thickness)

Line thickness in units.


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