Lines Matching refs:bar
165 Widget bar;
180 bar = XtCreateWidget((horizontal ? "horizontal" : "vertical"),
183 XtAddCallback( bar, XtNscrollProc, ScrollUpDownProc, (XtPointer)w );
184 XtAddCallback( bar, XtNjumpProc, ThumbProc, (XtPointer)w );
187 w->viewport.horiz_bar = bar;
188 constraints->form.vert_base = bar;
191 w->viewport.vert_bar = bar;
192 constraints->form.horiz_base = bar;
195 XtManageChild( bar );
197 return bar;
544 * note that having once decided to turn on either bar
552 Widget bar; \
554 if ((bar = w->viewport.horiz_bar) == (Widget)NULL) \
555 bar = CreateScrollbar(w, True); \
556 clip_height -= bar->core.height + \
557 bar->core.border_width; \
566 Widget bar;
568 if ((bar = w->viewport.vert_bar) == (Widget)NULL)
569 bar = CreateScrollbar(w, False);
570 clip_width -= bar->core.width + bar->core.border_width;
607 Widget bar = w->viewport.horiz_bar;
611 XtDestroyWidget( bar );
616 int bw = bar->core.border_width;
617 XtResizeWidget( bar, (Dimension) clip_width, bar->core.height, (Dimension) bw );
618 XtMoveWidget( bar,
623 ? w->core.height - bar->core.height - bw
625 XtSetMappedWhenManaged( bar, True );
630 Widget bar = w->viewport.vert_bar;
634 XtDestroyWidget( bar );
639 int bw = bar->core.border_width;
640 XtResizeWidget( bar, bar->core.width, (Dimension)clip_height, (Dimension)bw );
641 XtMoveWidget( bar,
643 ? w->core.width - bar->core.width - bw
648 XtSetMappedWhenManaged( bar, True );
920 Widget bar;
921 if ((bar = w->viewport.horiz_bar) == (Widget)NULL)
922 bar = CreateScrollbar( w, True );
923 height_remaining -= bar->core.height + bar->core.border_width;
934 Widget bar;
935 if ((bar = w->viewport.vert_bar) == (Widget)NULL)
936 bar = CreateScrollbar( w, False );
942 (int)(bar->core.width + bar->core.border_width) )
943 allowed.width -= bar->core.width + bar->core.border_width;