Lines Matching refs:simple_menu
52 #define offset(field) XtOffsetOf(SimpleMenuRec, simple_menu.field)
263 if (smw->simple_menu.label_class == NULL)
264 smw->simple_menu.label_class = smeBSBObjectClass;
266 smw->simple_menu.label = NULL;
267 smw->simple_menu.entry_set = NULL;
268 smw->simple_menu.recursive_set_values = FALSE;
270 if (smw->simple_menu.label_string != NULL)
273 smw->simple_menu.menu_width = TRUE;
276 smw->simple_menu.menu_width = FALSE;
280 smw->simple_menu.menu_height = TRUE;
283 smw->simple_menu.menu_height = FALSE;
357 attrs->cursor = smw->simple_menu.cursor;
359 if ((smw->simple_menu.backing_store == Always) ||
360 (smw->simple_menu.backing_store == NotUseful) ||
361 (smw->simple_menu.backing_store == WhenMapped) ) {
363 attrs->backing_store = smw->simple_menu.backing_store;
414 if (!smw_new->simple_menu.recursive_set_values) {
416 smw_new->simple_menu.menu_width = (smw_new->core.width != 0);
420 smw_new->simple_menu.menu_height = (smw_new->core.height != 0);
425 if (smw_old->simple_menu.cursor != smw_new->simple_menu.cursor)
427 XtWindow(new), smw_new->simple_menu.cursor);
429 if (smw_old->simple_menu.label_string !=smw_new->simple_menu.label_string)
430 if (smw_new->simple_menu.label_string == NULL) /* Destroy. */
431 XtDestroyWidget((Widget) smw_old->simple_menu.label);
432 else if (smw_old->simple_menu.label_string == NULL) /* Create. */
437 XtSetArg(arglist[0], XtNlabel, smw_new->simple_menu.label_string);
438 XtSetValues((Widget) smw_new->simple_menu.label, arglist, ONE);
441 if (smw_old->simple_menu.label_class != smw_new->simple_menu.label_class)
445 if ((smw_old->simple_menu.top_margin != smw_new->simple_menu.top_margin) ||
446 (smw_old->simple_menu.bottom_margin !=
447 smw_new->simple_menu.bottom_margin) /* filler................. */ ) {
693 SmeObject entry = smw->simple_menu.entry_set;
698 smw->simple_menu.entry_set = NULL;
727 if (entry == smw->simple_menu.entry_set) return;
734 smw->simple_menu.entry_set = NULL;
738 smw->simple_menu.entry_set = entry;
761 SmeObject entry = smw->simple_menu.entry_set;
811 return( (Widget) smw->simple_menu.entry_set);
830 smw->simple_menu.entry_set = NULL;
857 if ( (smw->simple_menu.label_string == NULL) ||
858 (smw->simple_menu.label != NULL) ) {
868 XtSetArg(args[0], XtNlabel, smw->simple_menu.label_string);
870 smw->simple_menu.label = (SmeObject)
872 smw->simple_menu.label_class, w,
882 *child = (Widget) smw->simple_menu.label;
926 if ( smw->simple_menu.menu_height )
930 height = smw->simple_menu.top_margin;
934 if ( (smw->simple_menu.row_height != 0) &&
935 (*entry != smw->simple_menu.label) )
936 (*entry)->rectangle.height = smw->simple_menu.row_height;
942 height += smw->simple_menu.bottom_margin;
945 if ((smw->simple_menu.row_height != 0) &&
946 (current_entry != smw->simple_menu.label) )
947 height = smw->simple_menu.row_height;
950 if (smw->simple_menu.menu_width)
1055 if (smw->simple_menu.popup_entry == NULL)
1056 entry = smw->simple_menu.label;
1058 entry = smw->simple_menu.popup_entry;
1083 if (smw->simple_menu.menu_on_screen) {
1132 smw->simple_menu.cursor,
1153 if ( !smw->simple_menu.recursive_set_values ) {
1155 smw->simple_menu.recursive_set_values = TRUE;
1163 smw->simple_menu.recursive_set_values = FALSE;
1181 if ( smw->simple_menu.menu_width )
1221 if (smw->simple_menu.menu_height)
1224 height = smw->simple_menu.top_margin + smw->simple_menu.bottom_margin;
1226 if (smw->simple_menu.row_height == 0) {
1231 height += smw->simple_menu.row_height * smw->composite.num_children;
1282 if ( *entry == smw->simple_menu.label )