Lines Matching refs:entry

310     SmeObject * entry;
320 ForAllChildren(smw, entry) {
321 if (!XtIsManaged ( (Widget) *entry)) continue;
324 switch(XRectInRegion(region, (int) (*entry)->rectangle.x,
325 (int) (*entry)->rectangle.y,
326 (unsigned int) (*entry)->rectangle.width,
327 (unsigned int) (*entry)->rectangle.height)) {
334 class = (SmeObjectClass) (*entry)->object.widget_class;
337 (class->rect_class.expose)( (Widget) *entry, NULL, NULL);
382 SmeObject * entry;
386 ForAllChildren(smw, entry) /* reset width of all entries. */
387 if (XtIsManaged( (Widget) *entry))
388 (*entry)->rectangle.width = smw->core.width;
517 SmeObject entry = (SmeObject) w;
528 old_width = entry->rectangle.width;
529 old_height = entry->rectangle.height;
546 entry->rectangle.width = old_width;
547 entry->rectangle.height = old_height;
555 entry->rectangle.width = old_width;
556 entry->rectangle.height = old_height;
677 * Description: Unhighlights current entry.
693 SmeObject entry = smw->simple_menu.entry_set;
696 if ( entry == NULL) return;
699 class = (SmeObjectClass) entry->object.widget_class;
700 (class->sme_class.unhighlight) ( (Widget) entry);
704 * Description: Highlights current entry.
720 SmeObject entry;
725 entry = GetEventEntry(w, event);
727 if (entry == smw->simple_menu.entry_set) return;
731 if (entry == NULL) return;
733 if ( !XtIsSensitive( (Widget) entry)) {
738 smw->simple_menu.entry_set = entry;
739 class = (SmeObjectClass) entry->object.widget_class;
741 (class->sme_class.highlight) ( (Widget) entry);
745 * Description: Notify user of current entry.
761 SmeObject entry = smw->simple_menu.entry_set;
764 if ( (entry == NULL) || !XtIsSensitive((Widget) entry ) ) return;
766 class = (SmeObjectClass) entry->object.widget_class;
767 (class->sme_class.notify)( (Widget) entry );
796 * Description: Gets the currently active (set) entry.
798 * Returns: the currently set entry or NULL if none is set.
815 * Description: Unsets the currently active (set) entry.
907 SmeObject current_entry, *entry;
931 ForAllChildren(smw, entry) {
932 if (!XtIsManaged( (Widget) *entry)) continue;
935 (*entry != smw->simple_menu.label) )
936 (*entry)->rectangle.height = smw->simple_menu.row_height;
938 (*entry)->rectangle.y = height;
939 (*entry)->rectangle.x = 0;
940 height += (*entry)->rectangle.height;
958 ForAllChildren(smw, entry)
959 if (XtIsManaged( (Widget) *entry))
960 (*entry)->rectangle.width = width;
1026 SmeObject entry;
1056 entry = smw->simple_menu.label;
1058 entry = smw->simple_menu.popup_entry;
1060 if (entry != NULL)
1061 location->y -= entry->rectangle.y + entry->rectangle.height/2;
1167 * Description: Sets the length of the widest entry in pixels.
1179 SmeObject * entry;
1184 ForAllChildren(smw, entry) {
1187 if (!XtIsManaged( (Widget) *entry)) continue;
1189 if (*entry != cur_entry) {
1190 XtQueryGeometry((Widget) *entry, (XtWidgetGeometry *)NULL, &preferred);
1195 width = (*entry)->rectangle.width;
1198 width = (*entry)->rectangle.width;
1208 * Description: Sets the length of the widest entry in pixels.
1218 SmeObject * entry;
1227 ForAllChildren(smw, entry)
1228 if (XtIsManaged ((Widget) *entry))
1229 height += (*entry)->rectangle.height;
1237 * Description: Gets an entry given an event that has X and Y coords.
1240 * Returns: the entry that this point is in.
1250 SmeObject * entry;
1277 ForAllChildren(smw, entry) {
1278 if (!XtIsManaged ((Widget) *entry)) continue;
1280 if ( ((*entry)->rectangle.y < y_loc) &&
1281 ((*entry)->rectangle.y + (int) (*entry)->rectangle.height > y_loc) )
1282 if ( *entry == smw->simple_menu.label )
1285 return(*entry);