Specifications

Athena Widget Set libXaw 1.0.7
3.5.2. Panner Actions
The actions supported by the Panner widget are:
start() This action begins movement of the slider.
stop() This action ends movement of the slider.
abort() This action ends movement of the slider and restores it to the position it
held when the start action was invoked.
move() This action movesthe outline of the slider (if the rubberBand resource
is True) or the slider itself (by invoking the notify action procedure).
page(xamount,yamount)This action movesthe slider by the specified amounts. The format for
the amounts is a signed or unsigned floating-point number (e.g., +1.0 or
−.5) followed by either p indicating pages (slider sizes), or c indicating
canvassizes. Thus, page(+0,+.5p) represents vertical movement down
one-half the height of the slider and page(0,0) represents moving to the
upper left corner of the canvas.
notify() This action informs the application of the slider’scurrent position by
invoking the reportCallback functions registered by the application.
set(what,value)This action changes the behavior of the Panner.The what argument must
currently be the string rubberband and controls the value of the rubber-
Band resource. The value argument may have one of the values on, off,
or toggle.
The default bindings for Panner are:
<Btn1Down>: start( )
<Btn1Motion>: move()
<Btn1Up>: notify( )stop( )
<Btn2Down>: abort( )
<Key>KP_Enter: set(rubberband,toggle)
<Key>space: page(+1p,+1p)
<Key>Delete: page(−1p,−1p)
<Key>BackSpace: page(−1p,−1p)
<Key>Left: page(−.5p,+0)
<Key>Right: page(+.5p,+0)
<Key>Up: page(+0,−.5p)
<Key>Down: page(+0,+.5p)
<Key>Home: page(0,0)
3.5.3. Panner Callbacks
The functions registered on the reportCallback list are invokedbythe notify action as follows:
void ReportProc(panner, client_data, report)
Widget panner;
XtPointer client_data;
XtPointer report;/*(XawPannerReport *) */
panner Specifies the Panner widget.
client_data Specifies the client data.
report Specifies a pointer to an XawPannerReport structure containing the location
and size of the slider and the size of the canvas.
36