Lines Matching refs:smw
248 SimpleMenuWidget smw = (SimpleMenuWidget) new;
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;
264 if (smw->core.width == 0) {
265 smw->simple_menu.menu_width = FALSE;
266 smw->core.width = GetMenuWidth(new, NULL);
269 smw->simple_menu.menu_height = TRUE;
271 if (smw->core.height == 0) {
272 smw->simple_menu.menu_height = FALSE;
273 smw->core.height = GetMenuHeight(new);
298 SimpleMenuWidget smw = (SimpleMenuWidget) w;
309 ForAllChildren(smw, entry) {
344 SimpleMenuWidget smw = (SimpleMenuWidget) w;
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;
370 SimpleMenuWidget smw = (SimpleMenuWidget) w;
375 ForAllChildren(smw, entry) /* reset width of all entries. */
377 (*entry)->rectangle.width = smw->core.width;
503 SimpleMenuWidget smw = (SimpleMenuWidget) XtParent(w);
537 Layout(( Widget) smw, NULL, NULL);
667 SimpleMenuWidget smw = (SimpleMenuWidget) w;
668 SmeObject entry = smw->simple_menu.entry_set;
673 smw->simple_menu.entry_set = NULL;
694 SimpleMenuWidget smw = (SimpleMenuWidget) w;
702 if (entry == smw->simple_menu.entry_set) return;
709 smw->simple_menu.entry_set = NULL;
713 smw->simple_menu.entry_set = entry;
735 SimpleMenuWidget smw = (SimpleMenuWidget) w;
736 SmeObject entry = smw->simple_menu.entry_set;
768 * Arguments: w - the smw widget.
776 SimpleMenuWidget smw = (SimpleMenuWidget) w;
778 return( (Widget) smw->simple_menu.entry_set);
783 * Arguments: w - the smw widget.
791 SimpleMenuWidget smw = (SimpleMenuWidget) w;
793 smw->simple_menu.entry_set = NULL;
804 * Arguments: w - the smw widget.
815 SimpleMenuWidget smw = (SimpleMenuWidget) w;
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,
839 for (child = smw->composite.children + smw->composite.num_children,
840 i = smw->composite.num_children ; i > 0 ; i--, child--) {
845 *child = (Widget) smw->simple_menu.label;
871 SimpleMenuWidget smw;
878 smw = (SimpleMenuWidget) w;
882 smw = (SimpleMenuWidget) XtParent(w);
886 allow_change_size = (!XtIsRealized((Widget)smw) ||
887 (smw->shell.allow_shell_resize));
889 if ( smw->simple_menu.menu_height )
890 height = smw->core.height;
893 height = smw->simple_menu.top_margin;
894 ForAllChildren(smw, entry) {
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)
914 width = smw->core.width;
916 width = GetMenuWidth((Widget) smw, (Widget) current_entry);
918 width = smw->core.width;
921 ForAllChildren(smw, entry)
926 MakeSetValuesRequest((Widget) smw, width, height);
988 SimpleMenuWidget smw = (SimpleMenuWidget) w;
1019 if (smw->simple_menu.popup_entry == NULL)
1020 entry = smw->simple_menu.label;
1022 entry = smw->simple_menu.popup_entry;
1045 SimpleMenuWidget smw = (SimpleMenuWidget) w;
1047 if (smw->simple_menu.menu_on_screen) {
1087 SimpleMenuWidget smw = (SimpleMenuWidget) w;
1096 smw->simple_menu.cursor, CurrentTime);
1112 SimpleMenuWidget smw = (SimpleMenuWidget) w;
1116 if ( !smw->simple_menu.recursive_set_values ) {
1117 if ( (smw->core.width != width) || (smw->core.height != height) ) {
1118 smw->simple_menu.recursive_set_values = TRUE;
1123 else if (XtIsRealized( (Widget) smw))
1124 Redisplay((Widget) smw, (XEvent *) NULL, (Region) NULL);
1126 smw->simple_menu.recursive_set_values = FALSE;
1140 SimpleMenuWidget smw = (SimpleMenuWidget) w;
1144 if ( smw->simple_menu.menu_width )
1145 return(smw->core.width);
1147 ForAllChildren(smw, entry) {
1180 SimpleMenuWidget smw = (SimpleMenuWidget) w;
1184 if (smw->simple_menu.menu_height)
1185 return(smw->core.height);
1187 height = smw->simple_menu.top_margin + smw->simple_menu.bottom_margin;
1189 if (smw->simple_menu.row_height == 0)
1190 ForAllChildren(smw, entry)
1194 height += smw->simple_menu.row_height * smw->composite.num_children;
1212 SimpleMenuWidget smw = (SimpleMenuWidget) w;
1236 if ( (x_loc < 0) || (x_loc >= smw->core.width) || (y_loc < 0) ||
1237 (y_loc >= smw->core.height) )
1240 ForAllChildren(smw, entry) {
1245 if ( *entry == smw->simple_menu.label )