Lines Matching refs:simple_menu

50 #define offset(field) XtOffset(SimpleMenuWidget, simple_menu.field)
252 if (smw->simple_menu.label_class == NULL)
253 smw->simple_menu.label_class = smeBSBObjectClass;
255 smw->simple_menu.label = NULL;
256 smw->simple_menu.entry_set = NULL;
257 smw->simple_menu.recursive_set_values = FALSE;
259 if (smw->simple_menu.label_string != NULL)
262 smw->simple_menu.menu_width = TRUE;
265 smw->simple_menu.menu_width = FALSE;
269 smw->simple_menu.menu_height = TRUE;
272 smw->simple_menu.menu_height = FALSE;
346 attrs->cursor = smw->simple_menu.cursor;
348 if ((smw->simple_menu.backing_store == Always) ||
349 (smw->simple_menu.backing_store == NotUseful) ||
350 (smw->simple_menu.backing_store == WhenMapped) ) {
352 attrs->backing_store = smw->simple_menu.backing_store;
401 if (!smw_new->simple_menu.recursive_set_values) {
403 smw_new->simple_menu.menu_width = (smw_new->core.width != 0);
407 smw_new->simple_menu.menu_height = (smw_new->core.height != 0);
412 if (smw_old->simple_menu.cursor != smw_new->simple_menu.cursor)
414 XtWindow(new), smw_new->simple_menu.cursor);
416 if (smw_old->simple_menu.label_string !=smw_new->simple_menu.label_string)
417 if (smw_new->simple_menu.label_string == NULL) /* Destroy. */
418 XtDestroyWidget((Widget)smw_old->simple_menu.label);
419 else if (smw_old->simple_menu.label_string == NULL) /* Create. */
424 XtSetArg(args[0], XtNlabel, smw_new->simple_menu.label_string);
425 XtSetValues((Widget)smw_new->simple_menu.label, args, ONE);
428 if (smw_old->simple_menu.label_class != smw_new->simple_menu.label_class)
432 if ((smw_old->simple_menu.top_margin != smw_new->simple_menu.top_margin) ||
433 (smw_old->simple_menu.bottom_margin !=
434 smw_new->simple_menu.bottom_margin) /* filler................. */ ) {
668 SmeObject entry = smw->simple_menu.entry_set;
673 smw->simple_menu.entry_set = NULL;
702 if (entry == smw->simple_menu.entry_set) return;
709 smw->simple_menu.entry_set = NULL;
713 smw->simple_menu.entry_set = entry;
736 SmeObject entry = smw->simple_menu.entry_set;
778 return( (Widget) smw->simple_menu.entry_set);
793 smw->simple_menu.entry_set = NULL;
820 if ( (smw->simple_menu.label_string == NULL) ||
821 (smw->simple_menu.label != NULL) ) {
831 XtSetArg(args[0], XtNlabel, smw->simple_menu.label_string);
833 smw->simple_menu.label = (SmeObject)
835 smw->simple_menu.label_class, w,
845 *child = (Widget) smw->simple_menu.label;
889 if ( smw->simple_menu.menu_height )
893 height = smw->simple_menu.top_margin;
897 if ( (smw->simple_menu.row_height != 0) &&
898 (*entry != smw->simple_menu.label) )
899 (*entry)->rectangle.height = smw->simple_menu.row_height;
905 height += smw->simple_menu.bottom_margin;
908 if ((smw->simple_menu.row_height != 0) &&
909 (current_entry != smw->simple_menu.label) )
910 height = smw->simple_menu.row_height;
913 if (smw->simple_menu.menu_width)
1019 if (smw->simple_menu.popup_entry == NULL)
1020 entry = smw->simple_menu.label;
1022 entry = smw->simple_menu.popup_entry;
1047 if (smw->simple_menu.menu_on_screen) {
1096 smw->simple_menu.cursor, CurrentTime);
1116 if ( !smw->simple_menu.recursive_set_values ) {
1118 smw->simple_menu.recursive_set_values = TRUE;
1126 smw->simple_menu.recursive_set_values = FALSE;
1144 if ( smw->simple_menu.menu_width )
1184 if (smw->simple_menu.menu_height)
1187 height = smw->simple_menu.top_margin + smw->simple_menu.bottom_margin;
1189 if (smw->simple_menu.row_height == 0)
1194 height += smw->simple_menu.row_height * smw->composite.num_children;
1245 if ( *entry == smw->simple_menu.label )