Drag[en]gine Script Module DragonScript Script API  1.0
CanvasPaint Class Reference

Canvas paint. More...

Inheritance diagram for CanvasPaint:
Canvas

Public Member Functions

Constructors
CanvasPaint new ()
 Create canvas paint. More...
 
Management
int getShapeType ()
 Shape type. More...
 
void setShapeType (int 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...
 
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 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...
 
int getBlendMode ()
 Blend mode used to blend canvas over previous content. More...
 
void setBlendMode (int blendMode)
 Set blend mode used to blend canvas over previous content. More...
 
bool equals (Object other)
 Canvas is equal to another object. More...
 
int hashCode ()
 Hash code for use as dictionary keys. More...
 

Static Public Attributes

Shapes.
static final int POINTS = 0
 Points. More...
 
static final int LINES = 1
 Lines. More...
 
static final int RECTANGLE = 2
 Rectangle. More...
 
static final int ELLIPSE = 3
 Ellipse or circle. More...
 
static final int PIE = 4
 Pie. More...
 
static final int POLYGON = 5
 Polygon or polyline. More...
 
- Static Public Attributes inherited from Canvas
static final int BLEND = 0
 Blend canvas over previous content. More...
 
static final int ADD = 1
 Add canvas over previous content. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Canvas
Canvas new ()
 Create canvas. More...
 

Detailed Description

Canvas paint.

This is a native class.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ addPoint()

void addPoint ( Point  point)

Add a point.

§ equals()

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

§ getFillColor()

Color getFillColor ( )

Fill color.

§ getLineColor()

Color getLineColor ( )

Line color.

§ getPointAt()

Point getPointAt ( int  index)

Point at position.

§ getPointCount()

int getPointCount ( )

Number of points.

§ getShapeType()

int getShapeType ( )

Shape type.

§ getThickness()

float getThickness ( )

Line thickness in units.

§ hashCode()

int hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

§ new()

CanvasPaint new ( )

Create canvas paint.

§ removeAllPoints()

void removeAllPoints ( )

Remove all points.

§ setFillColor()

void setFillColor ( Color  color)

Set fill color.

§ setLineColor()

void setLineColor ( Color  color)

Set line color.

§ setShapeType()

void setShapeType ( int  shapeType)

Set shape type.

§ setThickness()

void setThickness ( float  thickness)

Line thickness in units.

Member Data Documentation

§ ELLIPSE

final int ELLIPSE = 3
static

Ellipse or circle.

§ LINES

final int LINES = 1
static

Lines.

§ PIE

final int PIE = 4
static

Pie.

§ POINTS

final int POINTS = 0
static

Points.

§ POLYGON

final int POLYGON = 5
static

Polygon or polyline.

§ RECTANGLE

final int RECTANGLE = 2
static

Rectangle.


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