Xaw3_1Scrollbar.c revision 749
98N/A "$XConsortium: Scrollbar.c,v 1.58 89/12/15 11:36:58 kit Exp $";
98N/A/* ScrollBar.c */
493N/A#include <./Xaw3_1XawInit.h>
98N/A#include <./Xaw3_1ScrollbarP.h>
98N/Astatic char defaultTranslations[] =
98N/A#ifdef bogusScrollKeys
static void ClassInitialize();
static void Initialize();
static void Destroy();
static void Realize();
static void Resize();
static void Redisplay();
static void StartScroll();
static void MoveThumb();
static void NotifyThumb();
static void NotifyScroll();
static void EndScroll();
#define MIN(x,y) ((x) < (y) ? (x) : (y))
#define MAX(x,y) ((x) > (y) ? (x) : (y))
static void ClassInitialize()
sizeof(Screen *)}
static float FractionLoc(w, x, y)
float result;
int thumb;
if (bottom < 0) return;
switch(thumb) {
static void PaintThumb( w )
static void SetDimensions(w)
Destroy(w)
Widget w;
CreateGC(w)
Widget w;
depth);
SetDimensions( w );
static Boolean
return( redraw );
PaintThumb( w );
char direction;
switch( direction ) {
case MotionNotify:
case ButtonPress:
case ButtonRelease:
case KeyPress:
case KeyRelease:
case EnterNotify:
case LeaveNotify:
return True;
struct EventData {
int count;
char *args;
Widget w;
return True;
return False;
case MotionNotify:
case ButtonPress:
case ButtonRelease:
case KeyPress:
case KeyRelease:
case EnterNotify:
case LeaveNotify:
int call_data;
char style;
Position x, y;
switch( style ) {
Position x, y;
PaintThumb(w);
PaintThumb( w );