Lines Matching defs:widget

526 findWidgetInfo(Widget widget)
531 if (cw->widget == widget || cw->origin == widget) {
547 nw->widget = w;
600 if ((awt_winfo->widget == w) ||
611 if ((cw->widget == w) ||
634 couldn't find peer corresponding to widget
635 but the widget may be child of one with
642 widget, so set widget return value as well */
652 awt_isAwtWidget(Widget widget)
654 return (findWidgetInfo(widget) != NULL);
744 Widget widget = NULL;
773 if ((widget = XtWindowToWidget(awt_display, win)) == NULL) {
778 Widget focusWidget = XmGetFocusWidget(widget);
781 If the widget is a Choice, the widget with focus is probably lying
782 outside the current widget's sub-hierarchy, so we have to go up the
785 if ((focusWidget == NULL) && XmIsMenuShell(widget)) {
786 if ((widget = XtParent(widget)) != NULL) {
787 focusWidget = XmGetFocusWidget(widget);
792 /* In this case, focus widget should be CascadeButtonGadget type,
795 widget = XtParent(focusWidget);
798 widget = XtWindowToWidget(awt_display, win);
803 if (focusWidget == NULL && findWidgetInfo(widget) == NULL) {
804 focusWidget = findTopLevelByShell(widget);
807 /* If we are on a non-choice widget, process events in a normal way */
808 if ((focusWidget != NULL) && (focusWidget != widget)) {
809 if (isTheSameShellWidget(focusWidget, widget)) {
810 focusWidget = findTopLevelByShell(widget);
816 widget = focusWidget;
822 if ((winfo = findWidgetInfo(widget)) == NULL) {
837 Widget focusWidget = XmGetFocusWidget(widget);
843 /* If we are on a choice, dispatch the events to widget, but do not
846 if (!XmIsRowColumn(widget) || !XmIsCascadeButtonGadget(focusWidget)) {
852 if ((drag_source != NULL) && (widget != drag_source) &&
870 /* with the widget that has the focus rather than the widget */
897 widget != winfo->origin)
910 /* If we found a widget and a suitable peer (either the focus
911 peer above or the one associated with the widget then we
922 if (!XtIsSensitive(widget)) {
929 awt_canvas_handleEvent(widget, peer, xev, winfo, &cont, TRUE);
1252 return(findFocusProxy(cdata->widget));
1641 * First check that the event still has a widget, because
1642 * the widget may have been destroyed by another thread.
1644 Widget widget=XtWindowToWidget(awt_display, xev.xany.window);
1657 if ((widget == NULL) || (!XtIsObject(widget)) ||
1658 (widget->core.being_destroyed)) {
1665 * - for one of our old widget which has gone away
1669 if (widget == NULL) {
1701 immediately to the ScrollBar widget to prevent spurious
1713 (XtIsSubclass(widget, xmScrollBarWidgetClass))) {
1717 callback in the ScrollBar widget restarts the continuous
1765 Widget widget;
1769 widget of the proxy */
1771 widget = XtWindowToWidget(awt_display,
1773 if (widget == NULL) return;
1774 if ((winfo = findWidgetInfo(widget)) == NULL) {
1777 awt_canvas_handleEvent(widget, winfo->peer, &xev,
1839 if (awt_isAwtMenuWidget(widget)) {
1872 peer = findPeer(&widget);
2257 awt_isWidgetModal(Widget widget)
2261 for (w = widget; !XtIsShell(w); w = XtParent(w)) { }
2721 /* Root shell widget that serves as a parent for all AWT top-levels. */
3332 wdata->winData.comp.widget == NULL ||
3375 wdata->winData.comp.widget == NULL ||