Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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.
Management
CanvasPaintShape getShapeType ()
 Shape type.
void setShapeType (CanvasPaintShape shapeType)
 Set shape type.
Color getLineColor ()
 Line color.
void setLineColor (Color color)
 Set line color.
Color getFillColor ()
 Fill color.
void setFillColor (Color color)
 Set fill color.
float getThickness ()
 Line thickness in units.
void setThickness (float thickness)
 Line thickness in units.
float getRoundCornerX ()
 Round corner in X direction as percentage.
void setRoundCornerX (float roundCorner)
 Set round corner in X direction as percentage.
float getRoundCornerY ()
 Round corner in Y direction as percentage.
void setRoundCornerY (float roundCorner)
 Set round corner in Y direction as percentage.
float getStartAngle ()
 Start angle in degrees from 0 to 360.
void setStartAngle (float angle)
 Set start angle in degrees from 0 to 360.
float getEndAngle ()
 End angle in degrees from 0 to 360.
void setEndAngle (float angle)
 Set end angle in degrees from 0 to 360.
int getPointCount ()
 Number of points.
Point getPointAt (int index)
 Point at position.
void addPoint (Point point)
 Add a point.
void removeAllPoints ()
 Remove all points.
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 paint.

This is a native class.

Member Function Documentation

◆ addPoint()

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

Add a point.

Referenced by hashCode().

◆ 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.

References setEndAngle().

Referenced by hashCode().

◆ 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.

References getStartAngle().

Referenced by removeAllPoints().

◆ getFillColor()

Color Dragengine.Scenery.CanvasPaint.getFillColor ( )

Fill color.

Referenced by getThickness().

◆ getLineColor()

Color Dragengine.Scenery.CanvasPaint.getLineColor ( )

Line color.

References setShapeType().

Referenced by setLineColor().

◆ getPointAt()

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

Point at position.

Referenced by hashCode().

◆ getPointCount()

int Dragengine.Scenery.CanvasPaint.getPointCount ( )

Number of points.

References setStartAngle().

Referenced by hashCode().

◆ 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).

References setThickness().

Referenced by setRoundCornerX().

◆ 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).

References setRoundCornerX().

Referenced by getStartAngle().

◆ getShapeType()

CanvasPaintShape Dragengine.Scenery.CanvasPaint.getShapeType ( )

Shape type.

References getShapeType().

Referenced by getShapeType().

◆ 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.

References getRoundCornerY().

Referenced by getEndAngle().

◆ getThickness()

float Dragengine.Scenery.CanvasPaint.getThickness ( )

Line thickness in units.

References getFillColor().

Referenced by setThickness().

◆ hashCode()

int Dragengine.Scenery.CanvasPaint.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

Reimplemented from Dragengine.Scenery.Canvas.

References addPoint(), equals(), getPointAt(), getPointCount(), hashCode(), and removeAllPoints().

Referenced by hashCode().

◆ new()

CanvasPaint Dragengine.Scenery.CanvasPaint.new ( )

Create canvas paint.

Reimplemented from Dragengine.Scenery.Canvas.

References new().

Referenced by new().

◆ removeAllPoints()

void Dragengine.Scenery.CanvasPaint.removeAllPoints ( )

Remove all points.

References getEndAngle().

Referenced by hashCode().

◆ 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.

Referenced by equals().

◆ setFillColor()

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

Set fill color.

References setLineColor().

Referenced by setThickness().

◆ setLineColor()

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

Set line color.

References getLineColor().

Referenced by setFillColor().

◆ 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).

References getRoundCornerX().

Referenced by getRoundCornerY().

◆ 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).

Referenced by setStartAngle().

◆ setShapeType()

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

Set shape type.

Referenced by getLineColor().

◆ 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.

References setRoundCornerY().

Referenced by getPointCount().

◆ setThickness()

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

Line thickness in units.

References getThickness(), and setFillColor().

Referenced by getRoundCornerX().


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