Lines Matching defs:dialog
22 #include "dialog.h"
30 dlg.dialog.atr = A_NORMAL;
59 #define DLG_COLOR(dialog, f, b, h) \
61 dlg.dialog.fg = (f); \
62 dlg.dialog.bg = (b); \
63 dlg.dialog.hl = (h); \
70 DLG_COLOR(dialog, COLOR_BLACK, COLOR_WHITE, false);
103 DLG_COLOR(dialog, COLOR_WHITE, COLOR_BLACK, false);
190 init_one_color(&dlg.dialog);
269 * Do some initialization for dialog
287 * End using dialog functions.
294 /* Print the title of the dialog. Center the title and truncate
295 * tile if wider than dialog (- 2 chars).
297 void print_title(WINDOW *dialog, const char *title, int width)
301 wattrset(dialog, dlg.title.atr);
302 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' ');
303 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen);
304 waddch(dialog, ' ');