|
Drag[en]gine Script Module DragonScript 1.32.1
|
Canvas. More...
Public Member Functions | |
Management | |
| 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. | |
| bool | equals (Object other) |
| Canvas is equal to another object. | |
| int | hashCode () |
| Hash code for use as dictionary keys. | |
Protected Member Functions | |
Constructors | |
| Canvas | new () |
| Create canvas. | |
Canvas.
This is a native class. It can not be instanced directly.
| bool Dragengine.Scenery.Canvas.equals | ( | Object | other | ) |
Canvas is equal to another object.
Implements Object.equals(Object).
Reimplemented in Dragengine.Scenery.CanvasCanvasView, Dragengine.Scenery.CanvasImage, Dragengine.Scenery.CanvasPaint, Dragengine.Scenery.CanvasRenderWorld, Dragengine.Scenery.CanvasText, Dragengine.Scenery.CanvasVideoPlayer, and Dragengine.Scenery.CanvasView.
| CanvasBlendMode Dragengine.Scenery.Canvas.getBlendMode | ( | ) |
Blend mode used to blend canvas over previous content.
| ColorMatrix Dragengine.Scenery.Canvas.getColorTransform | ( | ) |
Color transformation matrix affecting the canvas and all its content.
| Canvas Dragengine.Scenery.Canvas.getMask | ( | ) |
Mask canvas or null.
Mask canvas content is converted to grayscale.
| float Dragengine.Scenery.Canvas.getOrder | ( | ) |
Render order. Larger renders ontop of smaller.
| Canvas Dragengine.Scenery.Canvas.getParentMask | ( | ) |
Parent canvas mask or null.
| CanvasView Dragengine.Scenery.Canvas.getParentView | ( | ) |
Parent canvas view or null.
| Point Dragengine.Scenery.Canvas.getPosition | ( | ) |
Position in parent canvas view units.
| Point Dragengine.Scenery.Canvas.getSize | ( | ) |
Size in parent canvas view units.
| TexMatrix2 Dragengine.Scenery.Canvas.getTransform | ( | ) |
Transformation matrix affecting the canvas and all its content.
| float Dragengine.Scenery.Canvas.getTransparency | ( | ) |
Transparency in the range from 0 to 1 where 1 is opaque and 0 fully transparent.
| bool Dragengine.Scenery.Canvas.getVisible | ( | ) |
Canvas is visible.
| int Dragengine.Scenery.Canvas.hashCode | ( | ) |
Hash code for use as dictionary keys.
Implements Object.hashCode().
Reimplemented in Dragengine.Scenery.CanvasCanvasView, Dragengine.Scenery.CanvasImage, Dragengine.Scenery.CanvasPaint, Dragengine.Scenery.CanvasRenderWorld, Dragengine.Scenery.CanvasText, Dragengine.Scenery.CanvasVideoPlayer, and Dragengine.Scenery.CanvasView.
|
protected |
| void Dragengine.Scenery.Canvas.setBlendMode | ( | CanvasBlendMode | blendMode | ) |
Set blend mode used to blend canvas over previous content.
| void Dragengine.Scenery.Canvas.setColorTransform | ( | ColorMatrix | transform | ) |
Set color transformation matrix affecting the canvas and all its content.
| void Dragengine.Scenery.Canvas.setMask | ( | Canvas | mask | ) |
Set mask canvas or null.
Mask canvas content is converted to grayscale.
| void Dragengine.Scenery.Canvas.setOrder | ( | float | order | ) |
Set render order. Larger renders ontop of smaller.
| void Dragengine.Scenery.Canvas.setPosition | ( | Point | position | ) |
Set position in parent canvas view units.
| void Dragengine.Scenery.Canvas.setSize | ( | Point | size | ) |
Set size in parent canvas view units.
| void Dragengine.Scenery.Canvas.setTransform | ( | TexMatrix2 | transform | ) |
Set transformation matrix affecting the canvas and all its content.
| void Dragengine.Scenery.Canvas.setTransparency | ( | float | transparency | ) |
Set transparency in the range from 0 to 1 where 1 is opaque and 0 fully transparent.
| void Dragengine.Scenery.Canvas.setVisible | ( | bool | visible | ) |
Set if canvas is visible.