Lines Matching refs:scrollbar
83 Offset(scrollbar.length), XtRImmediate, (XtPointer) 1},
85 Offset(scrollbar.thickness), XtRImmediate, (XtPointer) 14},
87 Offset(scrollbar.orientation), XtRImmediate, (XtPointer) XtorientVertical},
89 Offset(scrollbar.scrollProc), XtRCallback, NULL},
91 Offset(scrollbar.thumbProc), XtRCallback, NULL},
93 Offset(scrollbar.jumpProc), XtRCallback, NULL},
95 Offset(scrollbar.thumb), XtRImmediate, (XtPointer) XtUnspecifiedPixmap},
97 Offset(scrollbar.foreground), XtRString, XtDefaultForeground},
99 Offset(scrollbar.shown), XtRFloat, (XtPointer)&floatZero},
101 Offset(scrollbar.top), XtRFloat, (XtPointer)&floatZero},
103 Offset(scrollbar.verCursor), XtRString, "sb_v_double_arrow"},
105 Offset(scrollbar.horCursor), XtRString, "sb_h_double_arrow"},
107 Offset(scrollbar.upCursor), XtRString, "sb_up_arrow"},
109 Offset(scrollbar.downCursor), XtRString, "sb_down_arrow"},
111 Offset(scrollbar.leftCursor), XtRString, "sb_left_arrow"},
113 Offset(scrollbar.rightCursor), XtRString, "sb_right_arrow"},
115 Offset(scrollbar.min_thumb), XtRImmediate, (XtPointer) 7},
180 { /* scrollbar fields */
190 ((widget->scrollbar.orientation == XtorientHorizontal) ? x : y)
248 if (w->scrollbar.orientation == XtorientHorizontal)
250 w->scrollbar.gc, top, 1, length,
253 else XFillRectangle(XtDisplay(w), XtWindow(w), w->scrollbar.gc,
259 if (w->scrollbar.orientation == XtorientHorizontal)
279 oldtop = w->scrollbar.topLoc;
280 oldbot = oldtop + w->scrollbar.shownLength;
281 newtop = w->scrollbar.length * w->scrollbar.top;
282 newbot = newtop + (int)(w->scrollbar.length * w->scrollbar.shown);
283 if (newbot < newtop + (int)w->scrollbar.min_thumb)
284 newbot = newtop + w->scrollbar.min_thumb;
285 w->scrollbar.topLoc = newtop;
286 w->scrollbar.shownLength = newbot - newtop;
300 if (w->scrollbar.orientation == XtorientVertical) {
301 w->scrollbar.length = w->core.height;
302 w->scrollbar.thickness = w->core.width;
305 w->scrollbar.length = w->core.width;
306 w->scrollbar.thickness = w->core.height;
311 * Description: Called as the scrollbar is going away...
312 * Arguments: w - the scrollbar.
322 XtReleaseGC(w, sbw->scrollbar.gc);
327 * Arguments: w - the scrollbar widget.
340 if (sbw->scrollbar.thumb == XtUnspecifiedPixmap) {
341 sbw->scrollbar.thumb = XmuCreateStippledPixmap (XtScreen(w),
345 else if (sbw->scrollbar.thumb != None) {
349 if (XGetGeometry(XtDisplay(w), sbw->scrollbar.thumb, &root, &x, &y,
356 gcValues.foreground = sbw->scrollbar.foreground;
360 if (sbw->scrollbar.thumb != None) {
363 gcValues.stipple = sbw->scrollbar.thumb;
368 gcValues.tile = sbw->scrollbar.thumb;
372 sbw->scrollbar.gc = XtGetGC( w, mask, &gcValues);
387 w->core.width = (w->scrollbar.orientation == XtorientVertical)
388 ? w->scrollbar.thickness : w->scrollbar.length;
391 w->core.height = (w->scrollbar.orientation == XtorientHorizontal)
392 ? w->scrollbar.thickness : w->scrollbar.length;
395 w->scrollbar.direction = 0;
396 w->scrollbar.topLoc = 0;
397 w->scrollbar.shownLength = w->scrollbar.min_thumb;
407 w->scrollbar.inactiveCursor =
408 (w->scrollbar.orientation == XtorientVertical)
409 ? w->scrollbar.verCursor
410 : w->scrollbar.horCursor;
412 XtVaSetValues(gw, XtNcursor, w->scrollbar.inactiveCursor, NULL);
439 if (dw->scrollbar.top < 0.0 || dw->scrollbar.top > 1.0)
440 dw->scrollbar.top = w->scrollbar.top;
442 if (dw->scrollbar.shown < 0.0 || dw->scrollbar.shown > 1.0)
443 dw->scrollbar.shown = w->scrollbar.shown;
450 if ( (w->scrollbar.foreground != dw->scrollbar.foreground) ||
452 (w->scrollbar.thumb != dw->scrollbar.thumb) )
454 XtReleaseGC((Widget)dw, w->scrollbar.gc);
458 if (w->scrollbar.top != dw->scrollbar.top ||
459 w->scrollbar.shown != dw->scrollbar.shown)
486 if (w->scrollbar.orientation == XtorientHorizontal) {
487 x = w->scrollbar.topLoc;
489 width = w->scrollbar.shownLength;
493 y = w->scrollbar.topLoc;
495 height = w->scrollbar.shownLength;
501 w->scrollbar.topLoc = -(w->scrollbar.length + 1);
518 if (w->scrollbar.direction != 0) return; /* if we're already scrolling */
522 w->scrollbar.direction = direction;
526 case 'b': cursor = (w->scrollbar.orientation == XtorientVertical)
527 ? w->scrollbar.downCursor
528 : w->scrollbar.rightCursor; break;
531 case 'f': cursor = (w->scrollbar.orientation == XtorientVertical)
532 ? w->scrollbar.upCursor
533 : w->scrollbar.leftCursor; break;
536 case 'c': cursor = (w->scrollbar.orientation == XtorientVertical)
537 ? w->scrollbar.rightCursor
538 : w->scrollbar.upCursor; break;
650 if (w->scrollbar.direction == 0) return; /* if no StartScroll */
662 (int) w->scrollbar.length); break;
665 case 'f': call_data = w->scrollbar.length; break;
668 switch( w->scrollbar.direction ) {
691 XtVaSetValues(gw, XtNcursor, w->scrollbar.inactiveCursor, NULL);
694 w->scrollbar.direction = 0;
708 if (w->scrollbar.direction == 0) return; /* if no StartScroll */
715 w->scrollbar.top = FractionLoc(w, x, y);
730 if (w->scrollbar.direction == 0) return; /* if no StartScroll */
737 XtCallCallbacks( gw, XtNthumbProc, *(XtPointer*)&w->scrollbar.top);
738 XtCallCallbacks( gw, XtNjumpProc, (XtPointer)&w->scrollbar.top);
766 if (w->scrollbar.direction == 'c') return; /* if still thumbing */
768 w->scrollbar.top = (top > 1.0) ? 1.0 :
770 w->scrollbar.top;
772 w->scrollbar.shown = (shown > 1.0) ? 1.0 :
774 w->scrollbar.shown;