| Package | com.yworks.canvas.input |
| Class | public class CanvasContextMenuEvent |
| Inheritance | CanvasContextMenuEvent flash.events.ContextMenuEvent |
ContextMenuEvents and includes additional
properties related to the CanvasComponent.
| Property | Defined by | ||
|---|---|---|---|
| context : IInputModeContext
[read-only]
The context this event was dispatched from.
| CanvasContextMenuEvent | ||
| viewCoords : IPoint
[read-only]
The view coordinates at which the event occurred.
| CanvasContextMenuEvent | ||
| viewX : Number [read-only]
The horizontal view coordinate at which the event occurred.
| CanvasContextMenuEvent | ||
| viewY : Number [read-only]
The vertical view coordinate at which the event occurred.
| CanvasContextMenuEvent | ||
| worldCoords : IPoint
[read-only]
The world coordinates at which the event occurred.
| CanvasContextMenuEvent | ||
| worldX : Number [read-only]
The horizontal view coordinate at which the event occurred.
| CanvasContextMenuEvent | ||
| worldY : Number [read-only]
The vertical view coordinate at which the event occurred.
| CanvasContextMenuEvent | ||
| Method | Defined by | ||
|---|---|---|---|
|
CanvasContextMenuEvent(evt:ContextMenuEvent, viewCoords:IPoint, worldCoords:IPoint, context:IInputModeContext)
| CanvasContextMenuEvent | ||
| Constant | Defined by | ||
|---|---|---|---|
| MENU_SELECT : String = "menuSelect" [static]
| CanvasContextMenuEvent | ||
| context | property |
context:IInputModeContext [read-only]The context this event was dispatched from.
Implementation public function get context():IInputModeContext
| viewCoords | property |
viewCoords:IPoint [read-only]The view coordinates at which the event occurred.
Implementation public function get viewCoords():IPoint
| viewX | property |
viewX:Number [read-only]The horizontal view coordinate at which the event occurred.
Implementation public function get viewX():Number
| viewY | property |
viewY:Number [read-only]The vertical view coordinate at which the event occurred.
Implementation public function get viewY():Number
| worldCoords | property |
worldCoords:IPoint [read-only]The world coordinates at which the event occurred.
Implementation public function get worldCoords():IPoint
| worldX | property |
worldX:Number [read-only]The horizontal view coordinate at which the event occurred.
Implementation public function get worldX():Number
| worldY | property |
worldY:Number [read-only]The vertical view coordinate at which the event occurred.
Implementation public function get worldY():Number
| CanvasContextMenuEvent | () | constructor |
public function CanvasContextMenuEvent(evt:ContextMenuEvent, viewCoords:IPoint, worldCoords:IPoint, context:IInputModeContext)Parameters
evt:ContextMenuEvent |
|
viewCoords:IPoint |
|
worldCoords:IPoint |
|
context:IInputModeContext |
| MENU_SELECT | constant |
public static const MENU_SELECT:String = "menuSelect"