Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.CanvasView Class Reference

Canvas view. More...

Inheritance diagram for Dragengine.Scenery.CanvasView:
Dragengine.Scenery.Canvas

Public Member Functions

Constructors
CanvasView new ()
 Create canvas view.
Management
int getCanvasCount ()
 Number of child canvas.
Canvas getCanvasAt (int index)
 Child canvas at index.
void addCanvas (Canvas canvas)
 Add child canvas.
bool hasCanvas (Canvas canvas)
 Child canvas is present.
void removeCanvas (Canvas canvas)
 Remove child canvas.
void removeAllCanvas ()
 Remove all child canvas.
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 view.

This is a native class.

Member Function Documentation

◆ addCanvas()

void Dragengine.Scenery.CanvasView.addCanvas ( Canvas canvas)

Add child canvas.

References addCanvas(), and getCanvasAt().

Referenced by addCanvas().

◆ equals()

bool Dragengine.Scenery.CanvasView.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 removeAllCanvas().

Referenced by hashCode().

◆ getCanvasAt()

Canvas Dragengine.Scenery.CanvasView.getCanvasAt ( int index)

Child canvas at index.

Warning
This method can be expensive since child has to be searched for.
Exceptions
EInvalidParamindex is less than 0.
EInvalidParamindex is larger than or equal to getCanvasCount().

Referenced by addCanvas().

◆ getCanvasCount()

int Dragengine.Scenery.CanvasView.getCanvasCount ( )

Number of child canvas.

References getCanvasCount().

Referenced by getCanvasCount().

◆ hasCanvas()

bool Dragengine.Scenery.CanvasView.hasCanvas ( Canvas canvas)

Child canvas is present.

Version
1.11

Referenced by removeAllCanvas().

◆ hashCode()

int Dragengine.Scenery.CanvasView.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

Reimplemented from Dragengine.Scenery.Canvas.

References equals(), and hashCode().

Referenced by hashCode().

◆ new()

CanvasView Dragengine.Scenery.CanvasView.new ( )

Create canvas view.

Reimplemented from Dragengine.Scenery.Canvas.

References new().

Referenced by new().

◆ removeAllCanvas()

void Dragengine.Scenery.CanvasView.removeAllCanvas ( )

Remove all child canvas.

References hasCanvas(), and removeCanvas().

Referenced by equals().

◆ removeCanvas()

void Dragengine.Scenery.CanvasView.removeCanvas ( Canvas canvas)

Remove child canvas.

Referenced by removeAllCanvas().


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