3.  Widget Functions  

(widget? x)

Returns #t iff x is an object of type widget.

(destroy-widget widget)

See XtDestroyWidget.

(create-shell application-name application-class parent display . args)

See XtAppCreateShell. application-name and application-class are strings or symbols or #f (NULL is used in the latter case). parent is a widget. The number of args must be even, the 1st, 3rd, etc. argument is the name of a resource to be set (a string or a symbol), the 2nd, 4th, etc. argument is the corresponding value.

(create-widget widget-class parent . args)
(create-widget widget-name widget-class parent . args)

See XtCreateWidget. widget-name is a string or a symbol; parent is a widget. If no widget-name is given, the name of the widget class is used. The number of args must be even, the 1st, 3rd, etc. argument is the name of a resource to be set (a string or a symbol), the 2nd, 4th, etc. argument is the corresponding value.

(create-managed-widget . args)

Applies create-widget to the arguments and then calls manage-child with the newly created widget.

(realize-widget widget)

See XtRealizeWidget.

(unrealize-widget widget)

See XtUnrealizeWidget.

(widget-realized? widget)

See XtIsRealized.

(widget-display widget)

See XtDisplay. Returns an object of type display.

(widget-parent widget)

See XtParent.

(widget-name widget)

See XtName. Returns the name of a widget as a string.

(widget->window widget)
(widget-window widget)

See XtWindow. Returns an object of type window.

(widget-composite? widget)

See XtIsComposite.

(manage-children . widgets)

See XtManageChildren.

(manage-child widget)

Calls manage-children with the specified widget.

(unmanage-children . widgets)

See XtUnmanageChildren.

(unmanage-child widget)

Calls unmanage-children with the specified widget.

(widget-managed? widget)

See XtIsManaged.

(widget-class widget)

See XtClass. Returns an object of type class.

(widget-superclass widget)

See XtSuperclass. Returns an object of type class or the symbol none when the widget's class does not have a super-class.

(widget-subclass? widget class)

See XtIsSubclass.

(set-mapped-when-managed! widget managed?)

See XtSetMappedWhenManaged.

(map-widget widget)

See XtMapWidget.

(unmap-widget widget)

See XtUnmapWidget.

(set-values! widget . args)

See XtSetValues. The number of args must be even, the 1st, 3rd, etc. argument is the name of a resource to be set (a string or a symbol), the 2nd, 4th, etc. argument is the corresponding value.

(get-values widget . args)

See XtGetValues. Each arg is the name of a resource (a string or a symbol). Returns a list of the values of the specified resources.

(widget-context widget)

See XtWidgetToApplicationContext. Returns an object of type context.

(set-sensitive! widget sensitive?)

See XtSetSensitive.

(widget-sensitive? widget)

See XtIsSensitive.

(window->widget window)

See XtWindowToWidget.

(name->widget root-widget name)

See XtNameToWidget. name is a string or a symbol.

(widget-translate-coordinates widget x y)

See XtTranslateCoords. Returns the root-relative x and y coordinates as a pair of integers.


Markup created by unroff 1.0,    September 24, 1996,    net@informatik.uni-bremen.de