Package | com.yworks.canvas.input |
Class | public class ClickEvent |
Inheritance | ClickEvent flash.events.Event |
ClickInputMode
when the mouse is clicked.
Property | Defined By | ||
---|---|---|---|
alt : Boolean [read-only]
Returns whether the alt key was pressed while the click event occured. | ClickEvent | ||
clickPoint : IPoint [read-only]
Get the clickPoint in world coordinates. | ClickEvent | ||
context : IInputModeContext [read-only]
Gets the context in which the click occured. | ClickEvent | ||
ctrl : Boolean [read-only]
Returns whether the ctrl key was pressed while the click event occured. | ClickEvent | ||
shift : Boolean [read-only]
Returns whether the shift key was pressed while the click event occured. | ClickEvent |
Method | Defined By | ||
---|---|---|---|
ClickEvent(type:String, clickPoint:IPoint, ctrl:Boolean, alt:Boolean, shift:Boolean, context:IInputModeContext = null)
Constructor
| ClickEvent | ||
clone():Event [override] | ClickEvent |
Constant | Defined By | ||
---|---|---|---|
CLICK : String = click [static]
| ClickEvent |
alt | property |
alt:Boolean
[read-only] Returns whether the alt key was pressed while the click event occured.
public function get alt():Boolean
clickPoint | property |
clickPoint:IPoint
[read-only] Get the clickPoint in world coordinates.
public function get clickPoint():IPoint
context | property |
context:IInputModeContext
[read-only] Gets the context in which the click occured.
public function get context():IInputModeContext
ctrl | property |
ctrl:Boolean
[read-only] Returns whether the ctrl key was pressed while the click event occured.
public function get ctrl():Boolean
shift | property |
shift:Boolean
[read-only] Returns whether the shift key was pressed while the click event occured.
public function get shift():Boolean
ClickEvent | () | Constructor |
public function ClickEvent(type:String, clickPoint:IPoint, ctrl:Boolean, alt:Boolean, shift:Boolean, context:IInputModeContext = null)
Constructor
Parameterstype:String — The Event type.
| |
clickPoint:IPoint — The click point in world coordinates
| |
ctrl:Boolean — true if the ctrl key was pressed.
| |
alt:Boolean — true if the alt key was pressed.
| |
shift:Boolean — true if the shift key was pressed.
| |
context:IInputModeContext (default = null )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
CLICK | Constant |
public static const CLICK:String = click