Lines Matching refs:scrollbar
63 Offset(scrollbar.length), XtRImmediate, (caddr_t) 1},
65 Offset(scrollbar.thickness), XtRImmediate, (caddr_t) 14},
67 Offset(scrollbar.orientation), XtRImmediate, (caddr_t) XtorientVertical},
69 Offset(scrollbar.scrollProc), XtRCallback, NULL},
71 Offset(scrollbar.thumbProc), XtRCallback, NULL},
73 Offset(scrollbar.jumpProc), XtRCallback, NULL},
75 Offset(scrollbar.thumb), XtRImmediate, (XtPointer) XtUnspecifiedPixmap},
77 Offset(scrollbar.foreground), XtRString, XtDefaultForeground},
79 Offset(scrollbar.shown), XtRFloat, (caddr_t)&floatZero},
81 Offset(scrollbar.top), XtRFloat, (caddr_t)&floatZero},
83 Offset(scrollbar.verCursor), XtRString, "sb_v_double_arrow"},
85 Offset(scrollbar.horCursor), XtRString, "sb_h_double_arrow"},
87 Offset(scrollbar.upCursor), XtRString, "sb_up_arrow"},
89 Offset(scrollbar.downCursor), XtRString, "sb_down_arrow"},
91 Offset(scrollbar.leftCursor), XtRString, "sb_left_arrow"},
93 Offset(scrollbar.rightCursor), XtRString, "sb_right_arrow"},
95 Offset(scrollbar.min_thumb), XtRImmediate, (caddr_t) 7},
162 ((widget->scrollbar.orientation == XtorientHorizontal) ? x : y)
227 if (w->scrollbar.orientation == XtorientHorizontal)
229 w->scrollbar.gc, top, 1, length,
232 else XFillRectangle(XtDisplay(w), XtWindow(w), w->scrollbar.gc,
238 if (w->scrollbar.orientation == XtorientHorizontal)
258 oldtop = w->scrollbar.topLoc;
259 oldbot = oldtop + w->scrollbar.shownLength;
260 newtop = w->scrollbar.length * w->scrollbar.top;
261 newbot = newtop + (int)(w->scrollbar.length * w->scrollbar.shown);
262 if (newbot < newtop + w->scrollbar.min_thumb)
263 newbot = newtop + w->scrollbar.min_thumb;
264 w->scrollbar.topLoc = newtop;
265 w->scrollbar.shownLength = newbot - newtop;
279 if (w->scrollbar.orientation == XtorientVertical) {
280 w->scrollbar.length = w->core.height;
281 w->scrollbar.thickness = w->core.width;
284 w->scrollbar.length = w->core.width;
285 w->scrollbar.thickness = w->core.height;
290 * Description: Called as the scrollbar is going away...
291 * Arguments: w - the scrollbar.
301 XtReleaseGC(w, sbw->scrollbar.gc);
306 * Arguments: w - the scrollbar widget.
319 if (sbw->scrollbar.thumb == XtUnspecifiedPixmap) {
320 sbw->scrollbar.thumb = XmuCreateStippledPixmap (XtScreen(w),
324 else if (sbw->scrollbar.thumb != None) {
328 if (XGetGeometry(XtDisplay(w), sbw->scrollbar.thumb, &root, &x, &y,
335 gcValues.foreground = sbw->scrollbar.foreground;
339 if (sbw->scrollbar.thumb != None) {
342 gcValues.stipple = sbw->scrollbar.thumb;
347 gcValues.tile = sbw->scrollbar.thumb;
351 sbw->scrollbar.gc = XtGetGC( w, mask, &gcValues);
364 w->core.width = (w->scrollbar.orientation == XtorientVertical)
365 ? w->scrollbar.thickness : w->scrollbar.length;
368 w->core.height = (w->scrollbar.orientation == XtorientHorizontal)
369 ? w->scrollbar.thickness : w->scrollbar.length;
372 w->scrollbar.direction = 0;
373 w->scrollbar.topLoc = 0;
374 w->scrollbar.shownLength = w->scrollbar.min_thumb;
384 w->scrollbar.inactiveCursor =
385 (w->scrollbar.orientation == XtorientVertical)
386 ? w->scrollbar.verCursor
387 : w->scrollbar.horCursor;
389 attributes->cursor = w->scrollbar.inactiveCursor;
411 if (dw->scrollbar.top < 0.0 || dw->scrollbar.top > 1.0)
412 dw->scrollbar.top = w->scrollbar.top;
414 if (dw->scrollbar.shown < 0.0 || dw->scrollbar.shown > 1.0)
415 dw->scrollbar.shown = w->scrollbar.shown;
422 if ( (w->scrollbar.foreground != dw->scrollbar.foreground) ||
424 (w->scrollbar.thumb != dw->scrollbar.thumb) )
426 XtReleaseGC((Widget)w, w->scrollbar.gc);
430 if (w->scrollbar.top != dw->scrollbar.top ||
431 w->scrollbar.shown != dw->scrollbar.shown)
458 if (w->scrollbar.orientation == XtorientHorizontal) {
459 x = w->scrollbar.topLoc;
461 width = w->scrollbar.shownLength;
465 y = w->scrollbar.topLoc;
467 height = w->scrollbar.shownLength;
473 w->scrollbar.topLoc = -(w->scrollbar.length + 1);
490 if (w->scrollbar.direction != 0) return; /* if we're already scrolling */
494 w->scrollbar.direction = direction;
498 case 'b': cursor = (w->scrollbar.orientation == XtorientVertical)
499 ? w->scrollbar.downCursor
500 : w->scrollbar.rightCursor; break;
503 case 'f': cursor = (w->scrollbar.orientation == XtorientVertical)
504 ? w->scrollbar.upCursor
505 : w->scrollbar.leftCursor; break;
508 case 'c': cursor = (w->scrollbar.orientation == XtorientVertical)
509 ? w->scrollbar.rightCursor
510 : w->scrollbar.upCursor; break;
622 if (w->scrollbar.direction == 0) return; /* if no StartScroll */
634 (int) w->scrollbar.length); break;
637 case 'f': call_data = w->scrollbar.length; break;
640 switch( w->scrollbar.direction ) {
663 XDefineCursor(XtDisplay(w), XtWindow(w), w->scrollbar.inactiveCursor);
666 w->scrollbar.direction = 0;
680 if (w->scrollbar.direction == 0) return; /* if no StartScroll */
685 w->scrollbar.top = FractionLoc(w, x, y);
700 if (w->scrollbar.direction == 0) return; /* if no StartScroll */
704 XtCallCallbacks( gw, XtNthumbProc, &w->scrollbar.top);
705 XtCallCallbacks( gw, XtNjumpProc, &w->scrollbar.top);
725 if (w->scrollbar.direction == 'c') return; /* if still thumbing */
727 w->scrollbar.top = (top > 1.0) ? 1.0 :
729 w->scrollbar.top;
731 w->scrollbar.shown = (shown > 1.0) ? 1.0 :
733 w->scrollbar.shown;