Core widget

Application Header file <X11/Core.h>
Class Header file <X11/CoreP.h>
Class coreWidgetClass
Class Name Core
Superclass Object --> RectObj

      The Core widget is the Xt Intrinsics base class. It is root of the widget class hierarchy in all widget sets as it defines resources and base methodes for the other classes. Applications rarely need to create Core widgets directly, an exclusion is for case when an application uses Core widget just as a simple X window.

New Resources

Core class resources
Name Class Type Notes Default Value
accelerators Accelerators XtAccelerators CSG NULL
ancestorSensitive AncestorSensitive Boolean G True
background Background Pixel CSG XtDefaultBackground
backgroundPixmap Pixmap Pixmap CSG XtUnspecifiedPixmap
borderColor BorderColor Pixel CSG XtDefaultForeground
borderPixmap Pixmap Pixmap CSG XtUnspecifiedPixmap
borderWidth BorderWidth Dimension CSG 1
colormap Colormap Colormap CG Parent's Colormap
depth Depth int CG Parent's Depth
destroyCallback Callback XtCallbackList C NULL
height Height Dimension CSG 0
initialResourcesPersistent InitialResourcesPersistent Boolean C True
mappedWhenManaged MappedWhenManaged Boolean CSG True
screen Screen Screen CG Parent's Screen
sensitive Sensitive Boolean CSG True
translations Translations XtTranslations CSG NULL
width Width Dimension CSG 0
x Position Position CSG 0
y Position Position CSG 0

accelerators A list of event to action bindings to be executed by this widget, even though the event occurred in another widget. (See the X Toolkit Intrinsics - C Language Interface for details).
ancestorSensitive The sensitivity state of the ancestors of this widget. A widget is insensitive if either it or any of its ancestors is insensitive. This resource should not be changed with XtSetValues, although it may be queried.
background A pixel value which indexes the widget's colormap to derive the background color of the widget's window.
backgroundPixmap The background pixmap of this widget's window. If this resource is set to anything other than XtUnspecifiedPixmap, the pixmap specified will be used instead of the background color.
borderColor A pixel value which indexes the widget's colormap to derive the border color of the widget's window.
borderPixmap The border pixmap of this widget's window. If this resource is set to anything other than XtUnspecifiedPixmap, the pixmap specified will be used instead of the border color.
borderWidth The width of this widget's window border.
colormap The colormap that this widget will use.
depth The depth of this widget's window.
destroyCallback All functions on this list are called when this widget is destroyed.
height
width
The height and width of this widget in pixels.
initialResourcesPersistent Enable the Intrinsics referance counting facility. When aplications creatre and destroy widgets many times, and the Intrinsics allow these aplications to enable referance counting for their resources. If all widgets that use particular referance-counting resource are destroyed, the Intrinsics free the resource and reclaim its storage.
mappedWhenManaged If this resource is True, then the widget's window will automatically be mapped by the Toolkit when it is realized and managed.
screen The screen on which this widget is displayed. This is not a settable resource.
sensitive Whether or not the toolkit should pass user events to this widget. The widget will not get input events if either ancestorSensitive or sensitive is False.
translations The event bindings associated with this widget.
x
y
The location of the upper left outside corner of this widget in its parent. Command Actions The Command widget supports the following actions:


[ Xraw home ]       [ Xraw widget class hierarchy ]


Vladimir T. Romanovski
romsky@hp1.oea.ihep.su