The VendorShell widget class
Format
#include <Xm/Xm.h> #include <X11/Shell.h>
DESCRIPTION
VendorShell is a Motif widget class used as a supporting superclass for all shell classes that are visible to the window manager and that are not override redirect. It contains resources that describe the MWM-specific look and feel. It also manages the MWM-specific communication needed by all VendorShell subclasses. See the mwm reference page for more information.
If an application uses the XmNmwmDecorations, XmNmwmFunctions, or XmNmwmInputMode resource, it should include the file Xm/MwmUtil.h .
Setting XmNheight, XmNwidth, or XmNborderWidth for either a VendorShell or its managed child usually sets that resource to the same value in both the parent and the child. When an off-the-spot input method exists, the height and width of the shell may be greater than those of the managed child in order to accommodate the input method. In this case, setting XmNheight or XmNwidth for the shell does not necessarily set that resource to the same value in the managed child, and setting XmNheight or XmNwidth for the child does not necessarily set that resource to the same value in the shell.
For the managed child of a VendorShell, regardless of the value of the shell's XmNallowShellResize, setting XmNx or XmNy sets the corresponding resource of the parent but does not change the child's position relative to the parent. XtGetValues for the child's XmNx or XmNy yields the value of the corresponding resource in the parent. The x and y-coordinates of the child's upper left outside corner relative to the parent's upper left inside corner are both 0 (zero) minus the value of XmNborderWidth.
Note that the Inter-Client Communication Conventions Manual (ICCCM) allows a window manager to change or control the border width of a reparented top-level window.
VendorShell holds the XmQTspecifyRenderTable trait.
VendorShell inherits behavior, resources, and traits from the Core, Composite, Shell, and WMShell classes.
The class pointer is vendorShellWidgetClass.
The class name is VendorShell.
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
subresource by name or by class in a .Xdefaults
file, remove the
XmN or XmC prefix and use the remaining letters. To specify one of the defined
values for a subresource in a .Xdefaults
file, remove the Xm 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 subresource can be set at creation time (C), set by using XtSetValues
(S), retrieved by using XtGetValues (G), or is not applicable (N/A).
VendorShell Resource Set | ||||
Name | Class | Type | Default | Access |
XmNaudibleWarning | XmCAudibleWarning | unsigned char | XmBELL | CSG |
XmNbuttonFontList | XmCButtonFontList | XmFontList | dynamic | CSG |
XmNbuttonRenderTable | XmCButtonRenderTable | XmRenderTable | dynamic | CSG |
XmNdefaultFontList | XmCDefaultFontList | XmFontList | dynamic | CG |
XmNdeleteResponse | XmCDeleteResponse | unsigned char | XmDESTROY | CSG |
XmNinputMethod | XmCInputMethod | string | NULL | CSG |
XmNinputPolicy | XmCInputPolicy | XmInputPolicy | XmPER_SHELL | CSG |
XmNkeyboardFocusPolicy | XmCKeyboardFocusPolicy | unsigned char | XmEXPLICIT | CSG |
XmNlabelFontList | XmCLabelFontList | XmFontList | dynamic | CSG |
XmNlabelRenderTable | XmCLabelRenderTabel | XmRenderTable | dynamic | CSG |
XmNlayoutDirection | XmCLayoutDirection | XmDirection | XmLEFT_TO_RIGHT | CG |
XmNmwmDecorations | XmCMwmDecorations | int | -1 | CG |
XmNmwmFunctions | XmCMwmFunctions | int | -1 | CG |
XmNmwmInputMode | XmCMwmInputMode | int | -1 | CG |
XmNmwmMenu | XmCMwmMenu | String | NULL | CG |
XmNpreeditType | XmCPreeditType | String | dynamic | CSG |
XmNverifyPreedit | XmCVerifyPreedit | Boolean | False | CSG |
XmNshellUnitType | XmCShellUnitType | unsigned char | XmPIXELS | CSG |
XmNtextFontList | XmCTextFontList | XmFontList | dynamic | CSG |
XmNtextRenderTable | XmCTextRenderTable | XmRenderTable | dynamic | CSG |
XmNunitType | XmCUnitType | unsigned char | XmPIXELS | CSG |
XmNuseAsyncGeometry | XmCUseAsyncGeometry | Boolean | False | CSG |
The value of this resource is the bitwise inclusive OR of one or more flag bits. The possible flag bit constants, defined in the include file Xm/MwmUtil.h , are
The value of this resource is the bitwise inclusive OR of one or more flag bits. The possible flag bit constants, defined in the include file Xm/MwmUtil.h , are
An application that sets input constraints on a dialog usually uses the BulletinBoard's XmNdialogStyle resource rather than the parent DialogShell's XmNmwmInputMode resource.
The possible values for this resource, defined in the include file Xm/MwmUtil.h , are
label [mnemonic] [accelerator] function
If more than one item is specified, the items should be separated by a newline character.
When XtGetValues is called on this resource, the returned value is a pointer to the actual resource value and should not be freed.
Preedit Values | |
Preedit Value | XIM Style |
OffTheSpot | XIMPreeditArea |
Root | XIMPreeditNothing |
None | XIMPreeditNone |
OverTheSpot | XIMPreeditPosition |
OnTheSpot | XIMPreeditCallbacks |
When XtGetValues is called on this resource, the returned value is a pointer to the actual resource value and should not be freed.
The unit type can also be specified in resource files, with the following format:
<floating value><unit> |
where:
Note that the type Dimension must always be positive.
For example,
xmfonts*XmMainWindow.height: 10.4cm *PostIn.width: 3inches |
XmNunitType can have the following values:
For more information about units, refer to the XmConvertUnits reference page.
VendorShell inherits behavior and resources from the superclasses
described in the following tables. For a complete description of each
resource, refer to the reference page for that superclass.
WMShell Resource Set | ||||
Name | Class | Type | Default | Access |
XmNbaseHeight | XmCBaseHeight | int | XtUnspecifiedShellInt | CSG |
XmNbaseWidth | XmCBaseWidth | int | XtUnspecifiedShellInt | CSG |
XmNheightInc | XmCHeightInc | int | XtUnspecifiedShellInt | CSG |
XmNiconMask | XmCIconMask | Pixmap | NULL | CSG |
XmNiconPixmap | XmCIconPixmap | Pixmap | NULL | CSG |
XmNiconWindow | XmCIconWindow | Window | NULL | CSG |
XmNiconX | XmCIconX | int | XtUnspecifiedShellInt | CSG |
XmNiconY | XmCIconY | int | XtUnspecifiedShellInt | CSG |
XmNinitialState | XmCInitialState | int | NormalState | CSG |
XmNinput | XmCInput | Boolean | True | CSG |
XmNmaxAspectX | XmCMaxAspectX | int | XtUnspecifiedShellInt | CSG |
XmNmaxAspectY | XmCMaxAspectY | int | XtUnspecifiedShellInt | CSG |
XmNmaxHeight | XmCMaxHeight | int | XtUnspecifiedShellInt | CSG |
XmNmaxWidth | XmCMaxWidth | int | XtUnspecifiedShellInt | CSG |
XmNminAspectX | XmCMinAspectX | int | XtUnspecifiedShellInt | CSG |
XmNminAspectY | XmCMinAspectY | int | XtUnspecifiedShellInt | CSG |
XmNminHeight | XmCMinHeight | int | XtUnspecifiedShellInt | CSG |
XmNminWidth | XmCMinWidth | int | XtUnspecifiedShellInt | CSG |
XmNtitle | XmCTitle | String | dynamic | CSG |
XmNtitleEncoding | XmCTitleEncoding | Atom | dynamic | CSG |
XmNtransient | XmCTransient | Boolean | False | CSG |
XmNwaitForWm | XmCWaitForWm | Boolean | True | CSG |
XmNwidthInc | XmCWidthInc | int | XtUnspecifiedShellInt | CSG |
XmNwindowGroup | XmCWindowGroup | Window | dynamic | CSG |
mNwinGravity | XmCWinGravity | int | dynamic | CSG |
XmNwmTimeout | XmCWmTimeout | int | 5000 ms | CSG |
Shell Resource Set | ||||
Name | Class | Type | Default | Access |
XmNallowShellResize | XmCAllowShellResize | Boolean | False | CG |
XmNcreatePopupChildProc | XmCCreatePopupChildProc | XtCreatePopupChildProc | NULL | CSG |
XmNgeometry | XmCGeometry | String | NULL | CSG |
XmNoverrideRedirect | XmCOverrideRedirect | Boolean | False | CSG |
XmNpopdownCallback | XmCCallback | XtCallbackList | NULL | C |
XmNpopupCallback | XmCCallback | XtCallbackList | NULL | C |
XmNsaveUnder | XmCSaveUnder | Boolean | False | CSG |
XmNvisual | XmCVisual | Visual * | CopyFromParent | CSG |
Composite Resource Set | ||||
Name | Class | Type | Default | Access |
XmNchildren | XmCReadOnly | WidgetList | NULL | G |
XmNinsertPosition | XmCInsertPosition | XtOrderProc | NULL | CSG |
XmNnumChildren | XmCReadOnly | Cardinal | 0 | G |
Core Resource Set | ||||
Name | Class | Type | Default | Access |
XmNaccelerators | XmCAccelerators | XtAccelerators | dynamic | CSG |
XmNancestorSensitive | XmCSensitive | Boolean | dynamic | G |
XmNbackground | XmCBackground | Pixel | dynamic | CSG |
XmNbackgroundPixmap | XmCPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmNborderColor | XmCBorderColor | Pixel | XtDefaultForeground | CSG |
XmNborderPixmap | XmCPixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmNborderWidth | XmCBorderWidth | Dimension | 0 | CSG |
XmNcolormap | XmCColormap | Colormap | dynamic | CG |
XmNdepth | XmCDepth | int | dynamic | CG |
XmNdestroyCallback | XmCCallback | XtCallbackList | NULL | C |
XmNheight | XmCHeight | Dimension | dynamic | CSG |
XmNinitialResourcesPersistent | XmCInitialResourcesPersistent | Boolean | True | C |
XmNmappedWhenManaged | XmCMappedWhenManaged | Boolean | True | CSG |
XmNscreen | XmCScreen | Screen * | dynamic | CG |
XmNsensitive | XmCSensitive | Boolean | True | CSG |
XmNtranslations | XmCTranslations | XtTranslations | dynamic | CSG |
XmNwidth | XmCWidth | Dimension | dynamic | CSG |
XmNx | XmCPosition | Position | 0 | CSG |
XmNy | XmCPosition | Position | 0 | CSG |
There are no translations for VendorShell.
RELATED
Composite (3), Core (3), mwm (1), Shell (3), WMShell (3), XmActivateProtocol (3), XmActivateWMProtocol (3), XmAddProtocolCallback (3), XmAddWMProtocolCallback (3), XmAddProtocols (3), XmAddWMProtocols (3), XmDeactivateProtocol (3), XmDeactivateWMProtocol (3), XmGetAtomName (3), XmInternAtom (3), XmIsMotifWMRunning (3), XmRemoveProtocolCallback (3), XmRemoveWMProtocolCallback (3), XmRemoveProtocols (3), XmRemoveWMProtocols (3), XmScreen (3), XmSetProtocolHooks (3), and XmSetWMProtocolHooks (3).