Home | History | Annotate | Download | only in libmenu

Lines Matching refs:MENU

32 #include <menu.h>
34 /* defined in menu.c - the default menu struct */
35 extern MENU _menui_default_menu;
38 * Set the menu foreground attribute
41 set_menu_fore(MENU *menu, attr_t attr)
43 if (menu == NULL)
46 menu->fore = attr;
51 * Return the menu foreground attribute
54 menu_fore(MENU *menu)
56 if (menu == NULL)
59 return menu->fore;
63 * Set the menu background attribute
66 set_menu_back(MENU *menu, attr_t attr)
68 if (menu == NULL)
71 menu->back = attr;
76 * Return the menu background attribute
79 menu_back(MENU *menu)
81 if (menu == NULL)
84 return menu->back;
88 * Set the menu greyed out attribute
91 set_menu_grey(MENU *menu, attr_t attr)
93 if (menu == NULL)
96 menu->grey = attr;
101 * Return the menu greyed out attribute
104 menu_grey(MENU *menu)
106 if (menu == NULL)
109 return menu->grey;
113 * Set the menu pad character - the filler char between name and description
116 set_menu_pad(MENU *menu, int pad)
118 if (menu == NULL)
121 menu->pad = pad;
126 * Return the menu pad character
129 menu_pad(MENU *menu)
131 if (menu == NULL)
134 return menu->pad;