Quark #

Modules #

Quark v1.1.0 Documentation


quark/event #

Enum: ClickType #

ClickType #

The type or device that triggers the click event, such as using a touch screen or a mouse

  • Touch
    touchscreen
  • Keyboard
    Press Enter on the keyboard or press OK on the remote control
  • Mouse
    mouse

Enum: HighlightedStatus #

HighlightedStatus #

Status type of event Highlighted

  • Normal
    Normal situation
  • Hover
    When the mouse moves over the view or the focus switches to the view
  • Active
    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 actions
  • Bubble
    Enable event bubbling
  • All
    Both of the above include

Class: UIEvent #

UIEvent #

uievent.origin #

Origin of the event

uievent.timestamp #

The time when the event is triggered

uievent.isDefault #

Gets whether the default action of an event is enabled

uievent.isBubble #

Gets whether event bubbling is enabled

uievent.cancelDefault() #

Cancel the default event action, if one exists

uievent.cancelBubble() #

Cancel event bubbling. After calling this method, the event stops propagating upward

Class: ActionEvent #

ActionEvent #

actionevent.action #

Get the action object that triggers the event

actionevent.delay #

The difference between the event triggering time and the target time

actionevent.frame #

Keyframe Index

actionevent.looped #

The current number of looped

Class: KeyEvent #

KeyEvent #

keyevent.nextFocus #

The next possible remote focus view

keyevent.keycode #

Keyboard Code

keyevent.keypress #

Ascii code converted from keyboard code

keyevent.repeat #

The number of times the event is triggered repeatedly after the key is pressed
until the key is released

keyevent.shift #

Is the shift key pressed

keyevent.ctrl #

Is the ctrl key pressed

keyevent.alt #

Is the alt key pressed

keyevent.command #

Is the command key pressed

keyevent.capsLock #

Is capsLock enabled

keyevent.device #

Device id

keyevent.source #

Source id

Class: ClickEvent #

ClickEvent #

clickevent.x #

The cursor position in the window x

clickevent.y #

The cursor position in the window y

clickevent.count #

Number of consecutive clicks, possibly double clicks

clickevent.type #

Click trigger type

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

highlightedevent.status #

Highlight state type

Class: MouseEvent #

MouseEvent #

mouseevent.x #

The cursor position in the window x

mouseevent.y #

The cursor position in the window y

Interface: TouchPoint #

TouchPoint #

Touch point data of the touch event

touchpoint.id #

Touch point id

touchpoint.startX #

The position x of the touchpoint in the window when it is first pressed

touchpoint.startY #

The position y of the touchpoint in the window when it is first pressed

touchpoint.x #

The position of the touchpoint in the window x

touchpoint.y #

The position of the touchpoint in the window y

touchpoint.force #

touchpoint pressure strength, value range [0-1]

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.

touchpoint.view #

The initial view of the touchpoint

Class: TouchEvent #

TouchEvent #

touchevent.changedTouches #

Touch point collection

Class: NativeNotification #

NativeNotification #