'\" t .\" Core.sgm /main/9 1996/09/08 21:41:56 rws $ .de P! .fl \!!1 setgray .fl \\&.\" .fl \!!0 setgray .fl \" force out current output buffer \!!save /psv exch def currentpoint translate 0 0 moveto \!!/showpage{}def .fl \" prolog .sy sed -e 's/^/!/' \\$1\" bring in postscript file \!!psv restore . .de pF .ie \\*(f1 .ds f1 \\n(.f .el .ie \\*(f2 .ds f2 \\n(.f .el .ie \\*(f3 .ds f3 \\n(.f .el .ie \\*(f4 .ds f4 \\n(.f .el .tm ? font overflow .ft \\$1 .. .de fP .ie !\\*(f4 \{\ . ft \\*(f4 . ds f4\" ' br \} .el .ie !\\*(f3 \{\ . ft \\*(f3 . ds f3\" ' br \} .el .ie !\\*(f2 \{\ . ft \\*(f2 . ds f2\" ' br \} .el .ie !\\*(f1 \{\ . ft \\*(f1 . ds f1\" ' br \} .el .tm ? font underflow .. .ds f1\" .ds f2\" .ds f3\" .ds f4\" .ta 8n 16n 24n 32n 40n 48n 56n 64n 72n .TH "Core" 3 .SH "NAME" \fBCore\fP \(em The Core widget class "Core" "widget class" "Core" .SH "SYNOPSIS" .PP .nf #include .fi .SH "DESCRIPTION" .PP Core is the Xt Intrinsic base class for windowed widgets\&. The \fBObject\fP and \fBRectObj\fP classes provide support for windowless widgets\&. .SS "Classes" .PP All widgets are built from \fBCore\fP\&. .PP The class pointer is \fBwidgetClass\fP\&. .PP The class name is \fBCore\fP\&. .SS "New Resources" .PP The following table defines a set of widget resources used by the programmer to specify data\&. The programmer can also set the resource values for the inherited classes to set attributes for this widget\&. To reference a resource by name or by class in a \fB\&.Xdefaults\fP file, remove the \fBXmN\fP or \fBXmC\fP prefix and use the remaining letters\&. To specify one of the defined values for a resource in a \fB\&.Xdefaults\fP file, remove the \fBXm\fP prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words)\&. The codes in the access column indicate if the given resource can be set at creation time (C), set by using \fBXtSetValues\fP (S), retrieved by using \fBXtGetValues\fP (G), or is not applicable (N/A)\&. .PP .TS tab() box; c s s s s l| l| l| l| l. \fBCore Resource Set\fP \fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP _____ XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicCSG _____ XmNancestorSensitiveXmCSensitiveBooleandynamicG _____ XmNbackgroundXmCBackgroundPixeldynamicCSG _____ XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG _____ XmNborderColorXmCBorderColorPixelXtDefaultForegroundCSG _____ XmNborderPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG _____ XmNborderWidthXmCBorderWidthDimension1CSG _____ XmNcolormapXmCColormapColormapdynamicCG _____ XmNdepthXmCDepthintdynamicCG _____ XmNdestroyCallbackXmCCallbackXtCallbackListNULLC _____ XmNheightXmCHeightDimensiondynamicCSG _____ XmNinitialResourcesPersistentXmCInitialResourcesPersistentBooleanTrueC _____ XmNmappedWhenManagedXmCMappedWhenManagedBooleanTrueCSG _____ XmNscreenXmCScreenScreen *dynamicCG _____ XmNsensitiveXmCSensitiveBooleanTrueCSG _____ XmNtranslationsXmCTranslationsXtTranslationsdynamicCSG _____ XmNwidthXmCWidthDimensiondynamicCSG _____ XmNxXmCPositionPosition0CSG _____ XmNyXmCPositionPosition0CSG _____ .TE .IP "\fBXmNaccelerators\fP" 10 Specifies a translation table that is bound with its actions in the context of a particular widget\&. The accelerator table can then be installed on some destination widget\&. Note that the default accelerators for any widget will always be installed, no matter whether this resource is specified or not\&. .IP "\fBXmNancestorSensitive\fP" 10 Specifies whether the immediate parent of the widget receives input events\&. Use the function \fBXtSetSensitive\fP to change the argument to preserve data integrity (see \fBXmNsensitive\fP)\&. For shells, the default is copied from the parent\&'s \fBXmNancestorSensitive\fP resource if there is a parent; otherwise, it is True\&. For other widgets, the default is the bitwise AND of the parent\&'s \fBXmNsensitive\fP and \fBXmNancestorSensitive\fP resources\&. .IP "\fBXmNbackground\fP" 10 Specifies the background color for the widget\&. .IP "\fBXmNbackgroundPixmap\fP" 10 Specifies a pixmap for tiling the background\&. The first tile is placed at the upper left corner of the widget\&'s window\&. .IP "\fBXmNborderColor\fP" 10 Specifies the color of the border in a pixel value\&. .IP "\fBXmNborderPixmap\fP" 10 Specifies a pixmap to be used for tiling the border\&. The first tile is placed at the upper left corner of the border\&. .IP "\fBXmNborderWidth\fP" 10 Specifies the width of the border that surrounds the widget\&'s window on all four sides\&. The width is specified in pixels\&. A width of 0 (zero) means that no border shows\&. Note that you should use resources like \fBXmNshadowThickness\fP and \fBXmNhighlightThickness\fP instead of \fBXmNborderWidth\fP to specify border widths\&. .IP "\fBXmNcolormap\fP" 10 Specifies the colormap that is used for conversions to the type \fBPixel\fP for this widget instance\&. When this resource is changed, previously generated pixel values are not affected, but newly generated values are in the new colormap\&. For shells without parents, the default is the default colormap of the widget\&'s screen\&. Otherwise, the default is copied from the parent\&. .IP "\fBXmNdepth\fP" 10 Specifies the number of bits that can be used for each pixel in the widget\&'s window\&. Applications should not change or set the value of this resource as it is set by the Xt Intrinsics when the widget is created\&. For shells without parents, the default is the default depth of the widget\&'s screen\&. Otherwise, the default is copied from the parent\&. .IP "\fBXmNdestroyCallback\fP" 10 Specifies a list of callbacks that is called when the widget is destroyed\&. .IP "\fBXmNheight\fP" 10 Specifies the inside height (excluding the border) of the widget\&'s window\&. .IP "\fBXmNinitialResourcesPersistent\fP" 10 Specifies whether or not resources are reference counted\&. If the value is True when the widget is created, the resources referenced by the widget are not reference counted, regardless of how the resource type converter is registered\&. An application that expects to destroy the widget and wants to have resources deallocated should specify a value of False\&. The default is True, implying an assumption that the widget will not be destroyed during the life of the application\&. .IP "\fBXmNmappedWhenManaged\fP" 10 If this resource is set to True, it maps the widget (makes it visible) as soon as it is both realized and managed\&. If this resource is set to False, the client is responsible for mapping and unmapping the widget\&. If the value is changed from True to False after the widget has been realized and managed, the widget is unmapped\&. .IP "\fBXmNscreen\fP" 10 Specifies the screen on which a widget instance resides\&. It is read only\&. When the Toolkit is initialized, the top-level widget obtains its default value from the default screen of the display\&. Otherwise, the default is copied from the parent\&. .IP "\fBXmNsensitive\fP" 10 Determines whether a widget receives input events\&. If a widget is sensitive, the Xt Intrinsics\&' Event Manager dispatches to the widget all keyboard, mouse button, motion, window enter/leave, and focus events\&. Insensitive widgets do not receive these events\&. Use the function \fBXtSetSensitive\fP to change the sensitivity argument\&. Using \fBXtSetSensitive\fP ensures that if a parent widget has \fBXmNsensitive\fP set to False, the ancestor-sensitive flag of all its children is appropriately set\&. .IP "\fBXmNtranslations\fP" 10 Points to a translations list\&. A translations list is a list of events and actions that are to be performed when the events occur\&. Note that the default translations for any widget will always be installed, no matter whether this resource is specified or not\&. .IP "\fBXmNwidth\fP" 10 Specifies the inside width (excluding the border) of the widget\&'s window\&. .IP "\fBXmNx\fP" 10 Specifies the x-coordinate of the upper left outside corner of the widget\&'s window\&. The value is relative to the upper left inside corner of the parent window\&. .IP "\fBXmNy\fP" 10 Specifies the y-coordinate of the upper left outside corner of the widget\&'s window\&. The value is relative to the upper left inside corner of the parent window\&. .SS "Translations" .PP There are no translations for Core\&. .SH "RELATED" .PP \fBObject\fP(3) and \fBRectObj\fP(3)\&. .\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:16