| 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 | ||
| 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.
Implementation public function get alt():Boolean
| clickPoint | property |
clickPoint:IPoint [read-only]Get the clickPoint in world coordinates.
Implementation public function get clickPoint():IPoint
| context | property |
context:IInputModeContext [read-only]Gets the context in which the click occured.
Implementation public function get context():IInputModeContext
| ctrl | property |
ctrl:Boolean [read-only]Returns whether the ctrl key was pressed while the click event occured.
Implementation public function get ctrl():Boolean
| shift | property |
shift:Boolean [read-only]Returns whether the shift key was pressed while the click event occured.
Implementation 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) |
| CLICK | constant |
public static const CLICK:String = "click"