GLG Toolkit, JavaScript Library  Version 4.2
GlgSelectListener Class Reference

Detailed Description

GlgSelectListener is an object used by the GlgObject::AddListener method to attach listeners of the SELECT_CB type (defined in the GlgCallbackType enum).

These listeners are invoked when user clicks in a GLG drawing to select objects.

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

Public Member Functions

void SelectCallback (GlgObject glg_object, Object[] name_array, int button)
 

Member Function Documentation

◆ SelectCallback()

void SelectCallback ( GlgObject  glg_object,
Object []  name_array,
int  button 
)

Selection handler method.

This method is invoked when user clicks in a GLG drawing to select objects.

Parameters
glg_objectTop-level viewport object of the selection listener.
name_arrayNull-terminated array of names of all selected objects, including a complete path name.
buttonThe mouse button that was pressed to select objects.