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

Default mouse pointer. More...

Inheritance diagram for DefaultMousePointer:
MousePointer CanvasCreatorMousePointer ImageMousePointer VideoMousePointer

Public Member Functions

Canvas getCanvas ()
 Canvas to render mouse pointer with. More...
 
CanvasView getCanvasView ()
 Canvas to render mouse pointer with. More...
 
Point getOffset ()
 Canvas offset relative to mouse pointer position. More...
 
Point getPosition ()
 Mouse position. More...
 
Point getSize ()
 Mouse pointer size. More...
 
TexMatrix2 getTransformation ()
 Transformation or null if not set. More...
 
float getTransparency ()
 Transparency. More...
 
DefaultMousePointer new ()
 Create mouse pointer. More...
 
DefaultMousePointer new (Point size)
 Create mouse pointer. More...
 
DefaultMousePointer new (Point size, Point offset)
 Create mouse pointer. More...
 
DefaultMousePointer new (Point size, Point offset, float transparency)
 Create mouse pointer. More...
 
void setOffset (Point offset)
 Set canvas X offset relative to mouse pointer position. More...
 
void setPosition (Point position)
 Set mouse position. More...
 
void setSize (Point size)
 Set mouse pointer size. More...
 
void setTransformation (TexMatrix2 transformation)
 Set transformation or null if not set. More...
 
void setTransparency (float transparency)
 Set the transparency. More...
 

Detailed Description

Default mouse pointer.

Canvas is placed at an offset to the mouse pointer position.

Member Function Documentation

◆ getCanvas()

Canvas getCanvas ( )

Canvas to render mouse pointer with.

Implements MousePointer.

◆ getCanvasView()

CanvasView getCanvasView ( )

Canvas to render mouse pointer with.

◆ getOffset()

Point getOffset ( )

Canvas offset relative to mouse pointer position.

◆ getPosition()

Point getPosition ( )

Mouse position.

Implements MousePointer.

◆ getSize()

Point getSize ( )

Mouse pointer size.

◆ getTransformation()

TexMatrix2 getTransformation ( )

Transformation or null if not set.

◆ getTransparency()

float getTransparency ( )

Transparency.

◆ new() [1/4]

Create mouse pointer.

◆ new() [2/4]

DefaultMousePointer new ( Point  size)

Create mouse pointer.

◆ new() [3/4]

DefaultMousePointer new ( Point  size,
Point  offset 
)

Create mouse pointer.

◆ new() [4/4]

DefaultMousePointer new ( Point  size,
Point  offset,
float  transparency 
)

Create mouse pointer.

◆ setOffset()

void setOffset ( Point  offset)

Set canvas X offset relative to mouse pointer position.

◆ setPosition()

void setPosition ( Point  position)

Set mouse position.

Implements MousePointer.

◆ setSize()

void setSize ( Point  size)

Set mouse pointer size.

◆ setTransformation()

void setTransformation ( TexMatrix2  transformation)

Set transformation or null if not set.

◆ setTransparency()

void setTransparency ( float  transparency)

Set the transparency.


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