Quark
#
Modules #
quark/actionquark/appquark/bubblesquark/bufferquark/checkboxquark/cssquark/ctrquark/dialogquark/eventquark/fontquark/fsquark/hashquark/httpquark/indexquark/jsonbquark/keyboardquark/mediaquark/navquark/netquark/osquark/pathquark/pkgquark/screenquark/stepperquark/storagequark/testquark/typesquark/utilquark/viewquark/windowquark/wsquark/_bufferquark/_commonquark/_eventquark/_extquark/_md5quark/_sha1quark/_sha256quark/_utilquark/_watching
Quark v1.3.0 Documentation
Table of Contents
quark/event #
Enum: ClickType #
ClickType #
The type or device that triggers the click event, such as using a touch screen or a mouse
Touch
touchscreenKeyboard
Press Enter on the keyboard or press OK on the remote controlMouse
mouse
Enum: HighlightedStatus #
HighlightedStatus #
Status type of event Highlighted
Normal
Normal situationHover
When the mouse moves over the view or the focus switches to the viewActive
When the mouse is pressed or the OK button is pressed on the remote control
Enum: ReturnValueMask #
ReturnValueMask #
Mask function corresponding to event return value (returnValue)
Default
Enable default actionsBubble
Enable event bubblingAll
Both of the above include
Class: UIEvent #
UIEvent #
@extendsEvent
uievent.origin #
Origin of the event
@getorigin:View
uievent.timestamp #
The time when the event is triggered
@gettimestamp:number
uievent.isDefault #
Gets whether the default action of an event is enabled
@getisDefault:boolean
uievent.isBubble #
Gets whether event bubbling is enabled
@getisBubble:boolean
uievent.cancelDefault() #
Cancel the default event action, if one exists
@returnvoid
uievent.cancelBubble() #
Cancel event bubbling. After calling this method, the event stops propagating upward
@returnvoid
Class: ActionEvent #
ActionEvent #
@extendsUIEvent
actionevent.action #
Get the action object that triggers the event
@getaction:Action
actionevent.delay #
The difference between the event triggering time and the target time
@getdelay:number
actionevent.frame #
Keyframe Index
@getframe:number
actionevent.looped #
The current number of looped
@getlooped:number
Class: KeyEvent #
KeyEvent #
@extendsUIEvent
keyevent.nextFocus #
The next possible remote focus view
keyevent.keycode #
Keyboard Code
@getkeycode:KeyboardKeyCode
keyevent.keypress #
Ascii code converted from keyboard code
@getkeypress:number
keyevent.repeat #
The number of times the event is triggered repeatedly after the key is pressed
until the key is released
@getrepeat:number
keyevent.shift #
Is the shift key pressed
@getshift:boolean
keyevent.ctrl #
Is the ctrl key pressed
@getctrl:boolean
keyevent.alt #
Is the alt key pressed
@getalt:boolean
keyevent.command #
Is the command key pressed
@getcommand:boolean
keyevent.capsLock #
Is capsLock enabled
@getcapsLock:boolean
keyevent.device #
Device id
@getdevice:number
keyevent.source #
Source id
@getsource:number
Class: ClickEvent #
ClickEvent #
@extendsUIEvent
clickevent.x #
The cursor position in the window x
@getx:number
clickevent.y #
The cursor position in the window y
@gety:number
clickevent.count #
Number of consecutive clicks, possibly double clicks
@getcount:number
clickevent.type #
Click trigger type
@gettype:ClickType
Class: HighlightedEvent #
HighlightedEvent #
When this event triggers,
the highlighted state that the view should enter after triggering certain events.
For example: when the mouse enters the view, the state is Hover
@extendsUIEvent
highlightedevent.status #
Highlight state type
@getstatus:HighlightedStatus
Class: MouseEvent #
MouseEvent #
@extendsUIEvent
mouseevent.x #
The cursor position in the window x
@getx:number
mouseevent.y #
The cursor position in the window y
@gety:number
Interface: TouchPoint #
TouchPoint #
Touch point data of the touch event
touchpoint.id #
Touch point id
@getid:number
touchpoint.startX #
The position x of the touchpoint in the window when it is first pressed
@getstartX:number
touchpoint.startY #
The position y of the touchpoint in the window when it is first pressed
@getstartY:number
touchpoint.x #
The position of the touchpoint in the window x
@getx:number
touchpoint.y #
The position of the touchpoint in the window y
@gety:number
touchpoint.force #
touchpoint pressure strength, value range [0-1]
@getforce:number
touchpoint.clickIn #
Whether the touchpoint is still within the click range.
If the touchpoint is within the click range when it is pressed,
the touchpoint may move out of the range later.
@getclickIn:boolean
touchpoint.view #
The initial view of the touchpoint
@getview:View
Class: TouchEvent #
TouchEvent #
@extendsUIEvent
touchevent.changedTouches #
Touch point collection
@getchangedTouches:TouchPoint[]
Class: NativeNotification #
NativeNotification #
@extendsNotification@template<E>