GLG Toolkit, JavaScript Library  Version 4.2
GlgTraceData Class Reference

Detailed Description

The GlgTraceData class is used to pass information to the TraceListener.

Public Attributes

int button
 
Object event
 
GlgEventType event_type
 
GlgObject light_viewport
 
double mouse_root_x
 
double mouse_root_y
 
double mouse_x
 
double mouse_y
 
boolean trace2
 
GlgObject viewport
 

Member Data Documentation

◆ button

int button

Mouse button for the mouse events.

◆ event

Object event

JavaScript event that triggered Trace callback.

◆ event_type

GlgEventType event_type

Type of the event.

◆ light_viewport

GlgObject light_viewport

Event's light viewport.

◆ 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

Event's viewport.