Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
wheelmouse.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void xmAddMouseEventHandler (Widget w)
 

Function Documentation

void xmAddMouseEventHandler ( Widget  w)

Definition at line 125 of file wheelmouse.cc.

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

Here is the call graph for this function: