UIEvent
package js.html
extends Event
extended by CompositionEvent, FocusEvent, InputEvent, KeyboardEvent, MouseEvent, ScrollAreaEvent, TouchEvent
Available on js
The UIEvent interface represents simple user interface events.
Documentation UIEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Static variables
staticinlineread onlySCROLL_PAGE_DOWN:Int = 32768
staticinlineread onlySCROLL_PAGE_UP:Int = -32768
Constructor
new(type:String, ?eventInitDict:Null<UIEventInit>)
Throws:
null |
DOMError |
|---|
Variables
read onlydetail:Int
Returns a long with details about the event, depending on the event type.
read onlylayerX:Int
Returns the horizontal coordinate of the event relative to the current layer.
read onlylayerY:Int
Returns the vertical coordinate of the event relative to the current layer.
read onlypageX:Int
Returns the horizontal coordinate of the event relative to the whole document.
read onlypageY:Int
Returns the vertical coordinate of the event relative to the whole document.
read onlyrangeOffset:Int
read onlyrangeParent:Node
read onlyview:Window
Returns a WindowProxy that contains the view that generated the event.
read onlywhich:Int
Returns the numeric keyCode of the key pressed, or the character code (charCode) for an alphanumeric key pressed.
Methods
initUIEvent(aType:String, aCanBubble:Bool = false, aCancelable:Bool = false, ?aView:Window, aDetail:Int = 0):Void
Initializes a UIEvent object. If the event has already being dispatched, this method does nothing.
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/UIEvent.html