GLG Toolkit, JavaScript Library  Version 4.6
GlgTraceData Class Reference

This object is used to pass information to TraceCallback. More...

Detailed Description

This object is used to pass information to TraceCallback.

Public Attributes

int button
 Mouse button for the mouse events. More...
 
Object event
 The JavaScript event that triggered the callback. More...
 
GlgEventType event_type
 Type of the event, see GlgEventType. More...
 
GlgObject light_viewport
 Light viewport of the event or null. More...
 
double mouse_root_x
 X coordinate of the mouse (or touch) in pixels relative to the page. More...
 
double mouse_root_y
 Y coordinate of the mouse (or touch) in pixels relative to the page. More...
 
double mouse_x
 X coordinate of the mouse (or touch) in pixels relative to the viewport. More...
 
double mouse_y
 Y coordinate of the mouse (or touch) in pixels relative to the viewport. More...
 
boolean trace2
 true for the Trace2 callback, false for the Trace callback. More...
 
GlgObject viewport
 The viewport that received the event. More...
 

Member Data Documentation

◆ button

int button

Mouse button for the mouse events.

◆ event

Object event

The JavaScript event that triggered the callback.

◆ event_type

GlgEventType event_type

Type of the event, see GlgEventType.

◆ light_viewport

GlgObject light_viewport

Light viewport of the event or null.

◆ mouse_root_x

double mouse_root_x

X coordinate of the mouse (or touch) in pixels relative to the page.

◆ mouse_root_y

double mouse_root_y

Y coordinate of the mouse (or touch) in pixels relative to the page.

◆ mouse_x

double mouse_x

X coordinate of the mouse (or touch) in pixels relative to the viewport.

◆ mouse_y

double mouse_y

Y coordinate of the mouse (or touch) in pixels relative to the viewport.

◆ trace2

boolean trace2

true for the Trace2 callback, false for the Trace callback.

Trace callback is invoked before processing GLG Input events, and Trace2 is invoked after event processing.

◆ viewport

GlgObject viewport

The viewport that received the event.