Lines Matching defs:__menu
101 struct __menu { struct
102 int rows; /* max number of rows to be displayed */
103 int cols; /* max number of columns to be displayed */
104 int item_rows; /* number of item rows we have */
105 int item_cols; /* number of item columns we have */
106 int cur_row; /* current cursor row */
107 int cur_col; /* current cursor column */
108 MENU_STR mark; /* menu mark string */
109 MENU_STR unmark; /* menu unmark string */
110 OPTIONS opts; /* options for the menu */
111 char *pattern; /* the pattern buffer */
112 int plen; /* pattern buffer length */
113 int match_len; /* length of pattern matched */
114 int posted; /* set if menu is posted */
115 attr_t fore; /* menu foreground */
116 attr_t back; /* menu background */
117 attr_t grey; /* greyed out (nonselectable) menu item */
118 int pad; /* filler char between name and description */
119 char *userptr;
120 int top_row; /* the row that is at the top of the menu */
121 int max_item_width; /* widest item */
122 int col_width; /* width of the menu columns - this is not always
124 int item_count; /* number of items attached */
125 ITEM **items; /* items associated with this menu */
126 int cur_item; /* item cursor is currently positioned at */
127 int in_init; /* set when processing an init or term function call */
128 Menu_Hook menu_init; /* call this when menu is posted */
129 Menu_Hook menu_term; /* call this when menu is unposted */
130 Menu_Hook item_init; /* call this when menu posted & after
132 Menu_Hook item_term; /* call this when menu unposted & just
134 WINDOW *menu_win; /* the menu window */
135 WINDOW *menu_subwin; /* the menu subwindow */
136 WINDOW *scrwin; /* the window to write to */