Lines Matching defs:bar
39 #define BARPADDING 2 /* Dialog border | BARPADDING | box bar */
43 #define MIN_WMGBAR 18 /* Mixedgauge main bar */
68 struct bar {
71 int y; /* bar y in win */
72 int x; /* bar x in win */
79 static void draw_bar(struct bar *b)
87 ch = ' ' | t.bar.f_color;
89 ch = ' ' | t.bar.color;
94 wattron(b->win, t.bar.color); /* x+barlen < xlabel */
96 wattroff(b->win, t.bar.color);
97 wattron(b->win, t.bar.f_color); /* x+barlen >= xlabel */
99 wattroff(b->win, t.bar.f_color);
106 static void update_barbox(struct dialog *d, struct bar *b, bool buttons)
125 struct bar b;
131 RETURN_ERROR("Cannot build WINDOW bar");
269 struct bar b;
327 /* main bar */
329 RETURN_ERROR("Cannot build WINDOW bar");
331 wattron(b.win, t.bar.color);
333 wattroff(b.win, t.bar.color);
443 static int rangebox_redraw(struct dialog *d, struct bar *b, int *bigchange)
472 struct bar b;
490 RETURN_ERROR("Cannot build WINDOW bar");
597 static int pause_redraw(struct dialog *d, struct bar *b)
625 struct bar b;
633 RETURN_ERROR("Cannot build WINDOW bar");