MouseEngineEventData

open class MouseEngineEventData(val objectType: EngineEventDataObjectType = EngineEventDataObjectType.MOUSE_ENGINE_EVENT, val type: EngineEventDataType, val buttons: Int, val clientX: Double, val clientY: Double, val ctrlKey: Boolean, val mediaResource: EngineEventMediaResourceData?, val metaKey: Boolean, val pageX: Double, val pageY: Double, val readerDocumentEventState: ReaderDocumentEventState, val relativeClientX: Double, val relativeClientY: Double, val relativeScreenX: Double, val relativeScreenY: Double, val screenX: Double, val screenY: Double, val target: EngineEventTargetData?, val userGenerated: Boolean) : ReaderViewEngineEventData

The EngineEvent type used for "click" and "contextmenu" events.

Constructors

Link copied to clipboard
fun MouseEngineEventData(objectType: EngineEventDataObjectType = EngineEventDataObjectType.MOUSE_ENGINE_EVENT, type: EngineEventDataType, buttons: Int, clientX: Double, clientY: Double, ctrlKey: Boolean, mediaResource: EngineEventMediaResourceData?, metaKey: Boolean, pageX: Double, pageY: Double, readerDocumentEventState: ReaderDocumentEventState, relativeClientX: Double, relativeClientY: Double, relativeScreenX: Double, relativeScreenY: Double, screenX: Double, screenY: Double, target: EngineEventTargetData?, userGenerated: Boolean)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard

A number representing which buttons that are pressed on the mouse when a mouse event is triggered. Simultaneous buttons gives a combined value.

Link copied to clipboard

The x coordinate in the application's client area.

Link copied to clipboard

The y coordinate in the application's client area.

Link copied to clipboard

Indicates whether the ctrl key was pressed or not

Link copied to clipboard

If the event was related to a media resource in the publication such as an image, audio or video resource. It contains additional information about the media resource and methods to access media content.

Link copied to clipboard

Indicates whether the meta key was pressed or not

Link copied to clipboard

The type of engine event object this JSON structure represents.

Link copied to clipboard

The x coordinate relative the left edge of the application document. This includes any portion of the document not currently visible.

Link copied to clipboard

The y coordinate relative the top edge of the application document. This includes any portion of the document not currently visible.

Link copied to clipboard

Describes how the reader document acted on the event.

Link copied to clipboard

The client X coordinate relative to the window width. Typically a number between 0 and 1.

Link copied to clipboard

The client Y coordinate relative to the window height. Typically a number between 0 and 1.

Link copied to clipboard

The global screen X coordinate relative to the screen width. Typically a number between 0 and 1.

Link copied to clipboard

The global screen Y coordinate relative to the screen height. Typically a number between 0 and 1.

Link copied to clipboard

The x coordinate in global screen coordinates.

Link copied to clipboard

The y coordinate in global screen coordinates.

Link copied to clipboard

Contains additional information about the original event target, such as the targeted node in the reader document.

Link copied to clipboard

The type of event.

Link copied to clipboard

If the event was emitted due to a user generated event.

Inheritors

Link copied to clipboard