Drag[en]gine Script Module DragonScript
1.23
|
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 |
Canvas paint.
This is a native class.
void Dragengine.Scenery.CanvasPaint.addPoint | ( | Point | point | ) |
Add a point.
bool Dragengine.Scenery.CanvasPaint.equals | ( | Object | other | ) |
Canvas is equal to another object.
Implements Object.equals(Object).
Reimplemented from Dragengine.Scenery.Canvas.
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.
Color Dragengine.Scenery.CanvasPaint.getFillColor | ( | ) |
Fill color.
Color Dragengine.Scenery.CanvasPaint.getLineColor | ( | ) |
Line color.
Point Dragengine.Scenery.CanvasPaint.getPointAt | ( | int | index | ) |
Point at position.
int Dragengine.Scenery.CanvasPaint.getPointCount | ( | ) |
Number of points.
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).
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).
CanvasPaintShape Dragengine.Scenery.CanvasPaint.getShapeType | ( | ) |
Shape type.
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.
float Dragengine.Scenery.CanvasPaint.getThickness | ( | ) |
Line thickness in units.
int Dragengine.Scenery.CanvasPaint.hashCode | ( | ) |
Hash code for use as dictionary keys.
Implements Object.hashCode().
Reimplemented from Dragengine.Scenery.Canvas.
CanvasPaint Dragengine.Scenery.CanvasPaint.new | ( | ) |
Create canvas paint.
Reimplemented from Dragengine.Scenery.Canvas.
void Dragengine.Scenery.CanvasPaint.removeAllPoints | ( | ) |
Remove all points.
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.
void Dragengine.Scenery.CanvasPaint.setFillColor | ( | Color | color | ) |
Set fill color.
void Dragengine.Scenery.CanvasPaint.setLineColor | ( | Color | color | ) |
Set line color.
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).
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).
void Dragengine.Scenery.CanvasPaint.setShapeType | ( | CanvasPaintShape | shapeType | ) |
Set shape type.
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.
void Dragengine.Scenery.CanvasPaint.setThickness | ( | float | thickness | ) |
Line thickness in units.