Lines Matching defs:bar

140     Widget bar;
155 bar = XtCreateWidget( (horizontal ? "horizontal" : "vertical"),
158 XtAddCallback( bar, XtNscrollProc, ScrollUpDownProc, (caddr_t)w );
159 XtAddCallback( bar, XtNjumpProc, ThumbProc, (caddr_t)w );
162 w->viewport.horiz_bar = bar;
163 constraints->form.vert_base = bar;
166 w->viewport.vert_bar = bar;
167 constraints->form.horiz_base = bar;
170 XtManageChild( bar );
172 return bar;
487 * note that having once decided to turn on either bar
494 Widget bar; \
496 if ((bar = w->viewport.horiz_bar) == (Widget)NULL) \
497 bar = CreateScrollbar(w, True); \
498 clip_height -= bar->core.height + \
499 bar->core.border_width; \
508 Widget bar;
510 if ((bar = w->viewport.vert_bar) == (Widget)NULL)
511 bar = CreateScrollbar(w, False);
512 clip_width -= bar->core.width + bar->core.border_width;
547 register Widget bar = w->viewport.horiz_bar;
551 XtDestroyWidget( bar );
556 register int bw = bar->core.border_width;
557 XtResizeWidget( bar, clip_width, bar->core.height, bw );
558 XtMoveWidget( bar,
563 ? w->core.height - bar->core.height - bw
565 XtSetMappedWhenManaged( bar, True );
570 register Widget bar = w->viewport.vert_bar;
574 XtDestroyWidget( bar );
579 register int bw = bar->core.border_width;
580 XtResizeWidget( bar, bar->core.width, clip_height, bw );
581 XtMoveWidget( bar,
583 ? w->core.width - bar->core.width - bw
588 XtSetMappedWhenManaged( bar, True );
777 Widget bar;
778 if ((bar = w->viewport.horiz_bar) == (Widget)NULL)
779 bar = CreateScrollbar( w, True );
780 height_remaining -= bar->core.height + bar->core.border_width;
791 Widget bar;
792 if ((bar = w->viewport.vert_bar) == (Widget)NULL)
793 bar = CreateScrollbar( w, False );
798 if (allowed.width > (bar->core.width + bar->core.border_width))
799 allowed.width -= bar->core.width + bar->core.border_width;