Geant4-11
Functions
wheelmouse.h File Reference

Go to the source code of this file.

Functions

void xmAddMouseEventHandler (Widget w)
 

Function Documentation

◆ xmAddMouseEventHandler()

void xmAddMouseEventHandler ( Widget  w)

Definition at line 126 of file wheelmouse.cc.

127{
128 Widget wid;
129
130 /* we need to pass the scrollbar widget to the handler */
131 XtVaGetValues(XtParent(w),XmNverticalScrollBar, &wid, NULL);
132
133 /* handler for the scrolledList/ScrolledText */
134 XtAddEventHandler(w, ButtonReleaseMask, False,
135 (XtEventHandler) mouseScroll, wid);
136 /* and for the scrollbar itself */
137 XtAddEventHandler(wid, ButtonReleaseMask, False,
138 (XtEventHandler) mouseScroll, wid);
139}
static void mouseScroll(Widget, XtPointer client_data, XEvent *event, Boolean *)
Definition: wheelmouse.cc:57

References mouseScroll().

Referenced by G4OpenInventorXtExaminerViewer::constructListsDialog(), G4OpenInventorXtExaminerViewer::createElementsList(), G4OpenInventorXtExaminerViewer::popUpFileSelDialog(), G4OpenInventorXtExaminerViewer::saveRefCoordsDialogCB(), and G4OpenInventorXtExaminerViewer::saveSceneGraphDialogCB().