Quark
#
Modules #
quark/action
quark/app
quark/bubbles
quark/buffer
quark/checkbox
quark/css
quark/ctr
quark/dialog
quark/event
quark/font
quark/fs
quark/http
quark/index
quark/keyboard
quark/media
quark/nav
quark/os
quark/path
quark/pkg
quark/screen
quark/stepper
quark/storage
quark/test
quark/types
quark/util
quark/view
quark/window
quark/_common
quark/_event
quark/_ext
quark/_util
Quark v1.1.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 #
@extends
Event
uievent.origin #
Origin of the event
@get
origin
:View
uievent.timestamp #
The time when the event is triggered
@get
timestamp
:number
uievent.isDefault #
Gets whether the default action of an event is enabled
@get
isDefault
:boolean
uievent.isBubble #
Gets whether event bubbling is enabled
@get
isBubble
:boolean
uievent.cancelDefault() #
Cancel the default event action, if one exists
@return
void
uievent.cancelBubble() #
Cancel event bubbling. After calling this method, the event stops propagating upward
@return
void
Class: ActionEvent #
ActionEvent #
@extends
UIEvent
actionevent.action #
Get the action object that triggers the event
@get
action
:Action
actionevent.delay #
The difference between the event triggering time and the target time
@get
delay
:number
actionevent.frame #
Keyframe Index
@get
frame
:number
actionevent.looped #
The current number of looped
@get
looped
:number
Class: KeyEvent #
KeyEvent #
@extends
UIEvent
keyevent.nextFocus #
The next possible remote focus view
keyevent.keycode #
Keyboard Code
@get
keycode
:KeyboardKeyCode
keyevent.keypress #
Ascii code converted from keyboard code
@get
keypress
:number
keyevent.repeat #
The number of times the event is triggered repeatedly after the key is pressed
until the key is released
@get
repeat
:number
keyevent.shift #
Is the shift key pressed
@get
shift
:boolean
keyevent.ctrl #
Is the ctrl key pressed
@get
ctrl
:boolean
keyevent.alt #
Is the alt key pressed
@get
alt
:boolean
keyevent.command #
Is the command key pressed
@get
command
:boolean
keyevent.capsLock #
Is capsLock enabled
@get
capsLock
:boolean
keyevent.device #
Device id
@get
device
:number
keyevent.source #
Source id
@get
source
:number
Class: ClickEvent #
ClickEvent #
@extends
UIEvent
clickevent.x #
The cursor position in the window x
@get
x
:number
clickevent.y #
The cursor position in the window y
@get
y
:number
clickevent.count #
Number of consecutive clicks, possibly double clicks
@get
count
:number
clickevent.type #
Click trigger type
@get
type
: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
@extends
UIEvent
highlightedevent.status #
Highlight state type
@get
status
:HighlightedStatus
Class: MouseEvent #
MouseEvent #
@extends
UIEvent
mouseevent.x #
The cursor position in the window x
@get
x
:number
mouseevent.y #
The cursor position in the window y
@get
y
:number
Interface: TouchPoint #
TouchPoint #
Touch point data of the touch event
touchpoint.id #
Touch point id
@get
id
:number
touchpoint.startX #
The position x of the touchpoint in the window when it is first pressed
@get
startX
:number
touchpoint.startY #
The position y of the touchpoint in the window when it is first pressed
@get
startY
:number
touchpoint.x #
The position of the touchpoint in the window x
@get
x
:number
touchpoint.y #
The position of the touchpoint in the window y
@get
y
:number
touchpoint.force #
touchpoint pressure strength, value range [0-1]
@get
force
: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.
@get
clickIn
:boolean
touchpoint.view #
The initial view of the touchpoint
@get
view
:View
Class: TouchEvent #
TouchEvent #
@extends
UIEvent
touchevent.changedTouches #
Touch point collection
@get
changedTouches
:TouchPoint
[]
Class: NativeNotification #
NativeNotification #
@extends
Notification
@template
<E
>