GLG Toolkit, JavaScript Library  Version 4.1
 All Classes Namespaces Functions Variables Enumerations Enumerator
GlgTraceListener Class Reference

Detailed Description

GlgTraceListener is an object used by the GlgObject::AddListener method to attach listeners of the TRACE_CB and TRACE2_CB types (defined in the GlgCallbackType enum).

These listeners are invoked on any event in the GLG viewports, allowing to implement custom event handling logic.

The object's TraceCallback method defines the type signature of the function that needs to be passed as a parameter of the GlgObject::AddListener method to add a trace listener.

Public Member Functions

void TraceCallback (GlgObject glg_object, GlgTraceData trace_info)
 

Member Function Documentation

void TraceCallback ( GlgObject  glg_object,
GlgTraceData  trace_info 
)

Generic event-handling method.

This method is invoked on any event in the GLG viewports, allowing to implement custom event handling logic and handle low-level native events.

Parameters
glg_objectTop-level viewport object.
trace_infoGlgTraceData object containing detailed event information.