Lines Matching refs:scrollbar
60 (((widget)->scrollbar.orientation == XtorientHorizontal) ? (x) : (y))
120 Offset(scrollbar.length),
129 Offset(scrollbar.thickness),
138 Offset(scrollbar.orientation),
147 Offset(scrollbar.scrollProc),
156 Offset(scrollbar.thumbProc),
165 Offset(scrollbar.jumpProc),
174 Offset(scrollbar.thumb),
183 Offset(scrollbar.foreground),
192 Offset(scrollbar.shown),
201 Offset(scrollbar.top),
210 Offset(scrollbar.verCursor),
219 Offset(scrollbar.horCursor),
228 Offset(scrollbar.upCursor),
237 Offset(scrollbar.downCursor),
246 Offset(scrollbar.leftCursor),
255 Offset(scrollbar.rightCursor),
264 Offset(scrollbar.min_thumb),
323 /* scrollbar */
380 if (w->scrollbar.orientation == XtorientHorizontal)
393 if (w->scrollbar.orientation == XtorientHorizontal)
394 XFillRectangle(XtDisplay(w), XtWindow(w), w->scrollbar.gc,
397 XFillRectangle(XtDisplay(w), XtWindow(w), w->scrollbar.gc,
402 if (w->scrollbar.orientation == XtorientHorizontal)
421 oldtop = w->scrollbar.topLoc;
422 oldbot = (Position)(oldtop + w->scrollbar.shownLength);
423 newtop = (Position)(w->scrollbar.length * w->scrollbar.top);
424 newbot = (Position)(newtop + (int)(w->scrollbar.length * w->scrollbar.shown));
425 if (newbot < newtop + (int)w->scrollbar.min_thumb)
426 newbot = (Position)(newtop + w->scrollbar.min_thumb);
427 w->scrollbar.topLoc = newtop;
428 w->scrollbar.shownLength = (Dimension)(newbot - newtop);
445 if (w->scrollbar.orientation == XtorientVertical) {
446 w->scrollbar.length = XtHeight(w);
447 w->scrollbar.thickness = XtWidth(w);
450 w->scrollbar.length = XtWidth(w);
451 w->scrollbar.thickness = XtHeight(w);
460 XtReleaseGC(w, sbw->scrollbar.gc);
471 if (sbw->scrollbar.thumb == XtUnspecifiedPixmap)
472 sbw->scrollbar.thumb = XmuCreateStippledPixmap(XtScreen(w),
475 else if (sbw->scrollbar.thumb != None) {
480 XGetGeometry(XtDisplay(w), sbw->scrollbar.thumb, &root, &x, &y,
484 gcValues.foreground = sbw->scrollbar.foreground;
488 if (sbw->scrollbar.thumb != None) {
491 gcValues.stipple = sbw->scrollbar.thumb;
496 gcValues.tile = sbw->scrollbar.thumb;
500 sbw->scrollbar.gc = XtGetGC(w, mask, &gcValues);
513 XtWidth(w) = w->scrollbar.orientation == XtorientVertical ?
514 w->scrollbar.thickness : w->scrollbar.length;
517 XtHeight(w) = w->scrollbar.orientation == XtorientHorizontal ?
518 w->scrollbar.thickness : w->scrollbar.length;
521 w->scrollbar.direction = 0;
522 w->scrollbar.topLoc = 0;
523 w->scrollbar.shownLength = w->scrollbar.min_thumb;
532 w->scrollbar.inactiveCursor = w->scrollbar.orientation == XtorientVertical ?
533 w->scrollbar.verCursor : w->scrollbar.horCursor;
535 XtVaSetValues(gw, XtNcursor, w->scrollbar.inactiveCursor, NULL);
556 if (dw->scrollbar.top < 0.0 || dw->scrollbar.top > 1.0)
557 dw->scrollbar.top = w->scrollbar.top;
559 if (dw->scrollbar.shown < 0.0 || dw->scrollbar.shown > 1.0)
560 dw->scrollbar.shown = w->scrollbar.shown;
563 if (w->scrollbar.foreground != dw->scrollbar.foreground ||
565 w->scrollbar.thumb != dw->scrollbar.thumb) {
566 XtReleaseGC((Widget)dw, w->scrollbar.gc);
570 if (w->scrollbar.top != dw->scrollbar.top ||
571 w->scrollbar.shown != dw->scrollbar.shown)
598 if (w->scrollbar.orientation == XtorientHorizontal) {
599 x = w->scrollbar.topLoc;
601 width = (unsigned)(w->scrollbar.shownLength);
606 y = w->scrollbar.topLoc;
608 height = (unsigned)(w->scrollbar.shownLength);
614 w->scrollbar.topLoc = (Position)(-(w->scrollbar.length + 1));
627 if (w->scrollbar.direction != 0) /* if we're already scrolling */
634 w->scrollbar.direction = direction;
639 cursor = w->scrollbar.orientation == XtorientVertical ?
640 w->scrollbar.downCursor : w->scrollbar.rightCursor;
644 cursor = w->scrollbar.orientation == XtorientVertical ?
645 w->scrollbar.upCursor : w->scrollbar.leftCursor;
649 cursor = w->scrollbar.orientation == XtorientVertical ?
650 w->scrollbar.rightCursor : w->scrollbar.upCursor;
768 if (w->scrollbar.direction == 0) /* if no StartScroll */
783 call_data = InRange(PICKLENGTH(w, x, y), 0, (int)w->scrollbar.length);
787 call_data = w->scrollbar.length;
791 switch(w->scrollbar.direction) {
812 XtVaSetValues(gw, XtNcursor, w->scrollbar.inactiveCursor, NULL);
815 w->scrollbar.direction = 0;
825 if (w->scrollbar.direction == 0) /* if no StartScroll */
835 w->scrollbar.top = FractionLoc(w, x, y);
848 if (w->scrollbar.direction == 0) /* if no StartScroll */
857 xtpf.xtf = w->scrollbar.top;
859 XtCallCallbacks(gw, XtNjumpProc, (XtPointer)&w->scrollbar.top);
879 if (w->scrollbar.direction == 'c') /* if still thumbing */
882 w->scrollbar.top = (float)((top > 1.0)
886 : w->scrollbar.top));
888 w->scrollbar.shown = (float)((shown > 1.0)
892 : w->scrollbar.shown));