Home | History | Annotate | Download | only in src

Lines Matching defs:widget

143             "Widget class %s version mismatch (recompilation needed):\n  widget %d vs. intrinsics %d.";
144 _Xconst _XtString recompile = "Widget class %s must be re-compiled.";
155 sizeof(Atom) != sizeof(Widget) ||
158 XtWarningMsg("versionMismatch", "widget", XtCXtToolkitError,
161 XtErrorMsg("R4orR5versionMismatch", "widget", XtCXtToolkitError,
169 XtWarningMsg("r3versionMismatch", "widget", XtCXtToolkitError,
170 "Shell Widget class %s binary compiled for R3",
172 XtErrorMsg("R3versionMismatch", "widget", XtCXtToolkitError,
178 XtWarningMsg("versionMismatch", "widget", XtCXtToolkitError,
182 XtErrorMsg("r2versionMismatch", "widget", XtCXtToolkitError,
201 Widget req_widget,
202 Widget new_widget,
229 Widget req_widget,
230 Widget new_widget,
250 static Widget
253 Widget parent,
260 Widget widget;
286 typed_args, &ntyped, &widget, NULL);
304 widget = (Widget) __XtCalloc(1, (unsigned) (wsize + csize));
305 widget->core.constraints =
306 (csize ? (XtPointer) ((char *) widget + wsize) : NULL);
308 widget->core.self = widget;
309 widget->core.parent = parent;
310 widget->core.widget_class = widget_class;
311 widget->core.xrm_name = StringToName((name != NULL) ? name : "");
312 widget->core.being_destroyed =
314 return widget;
318 CompileCallbacks(Widget widget)
325 widget->core.widget_class->core_class.callback_private;
329 ((char *) widget - (*offsets)->xrm_offset - 1);
337 static Widget
341 Widget parent,
353 Widget req_widget;
356 Widget widget;
360 widget = xtWidgetAlloc(widget_class, parent_constraint_class, parent,
363 if (XtIsRectObj(widget)) {
364 widget->core.managed = FALSE;
366 if (XtIsWidget(widget)) {
367 widget->core.name = XrmNameToString(widget->core.xrm_name);
368 widget->core.screen = default_screen;
369 widget->core.tm.translations = NULL;
370 widget->core.window = (Window) 0;
371 widget->core.visible = TRUE;
372 widget->core.popup_list = NULL;
373 widget->core.num_popups = 0;
376 if (XtIsApplicationShell(widget)) {
377 ApplicationShellWidget a = (ApplicationShellWidget) widget;
388 cache_refs = _XtGetResources(widget, args, num_args,
405 CompileCallbacks(widget);
408 XtAddCallback(widget, XtNdestroyCallback,
413 req_widget = (Widget) XtStackAlloc(wsize, widget_cache);
414 (void) memcpy(req_widget, (char *) widget, (size_t) wsize);
415 CallInitialize(XtClass(widget), req_widget, widget, args, num_args);
423 (void) memcpy(req_constraints, widget->core.constraints,
429 widget,
437 Widget hookobj;
439 (*post_proc) (widget);
446 call_data.widget = widget;
471 return (widget);
475 widgetPostProc(Widget w)
478 Widget parent = XtParent(w);
503 Widget
506 Widget parent,
512 register Widget widget;
530 "XtCreateWidget \"%s\" requires non-NULL widget class",
539 /* not a widget */
558 "widget \"%s\" class %s has invalid CompositeClassExtension record",
566 "attempt to add non-widget child \"%s\" to parent \"%s\" which supports only widgets",
582 widget = xtCreate(name, (char *) NULL, widget_class, parent,
585 return (widget);
588 Widget
591 Widget parent,
595 Widget retval;
607 Widget
610 Widget parent,
614 register Widget widget;
620 widget = _XtCreateWidget((String) name, widget_class, parent, args,
622 XtManageChild(widget);
624 return widget;
628 popupPostProc(Widget w)
630 Widget parent = XtParent(w);
634 (Cardinal) sizeof(Widget));
638 Widget
641 Widget parent,
647 register Widget widget;
657 "XtCreatePopupShell requires non-NULL widget class",
662 widget = xtCreate(name, (char *) NULL, widget_class, parent,
668 XtAddEventHandler(widget, (EventMask) PropertyChangeMask, FALSE,
671 return (widget);
674 Widget
677 Widget parent,
681 Widget retval;
692 Widget
702 Widget shell;
707 "XtAppCreateShell requires non-NULL widget class",
712 shell = xtCreate(name, class, widget_class, (Widget) NULL,
725 Widget
731 Widget retval;
742 Widget
748 Widget retval;
765 Widget
768 Widget req_widget;
771 Widget hookobj = xtWidgetAlloc(hookObjectClass,
773 (Widget) NULL, "hooks",
782 req_widget = (Widget) XtStackAlloc(wsize, widget_cache);