GLG Toolkit, JavaScript Library
Version 4.2
|
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) |
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.
glg_object | Top-level viewport object of the selection listener. |
name_array | Null-terminated array of names of all selected objects, including a complete path name. |
button | The mouse button that was pressed to select objects. |