#include <Xm/Xm.h>
When a constrained composite widget defines constraint resources, all of that widget's children inherit all of those resources as their own. These constraint resources are set and read just the same as any other resources defined for the child. This resource inheritance extends exactly one generation down, which means only the first-generation children of a constrained composite widget inherit the parent widget's constraint resources.
Because constraint resources are defined by the parent widgets and not the children, the child widgets never directly use the constraint resource data. Instead, the parents use constraint resource data to attach child-specific data to children.
The class pointer is constraintWidgetClass.
The class name is Constraint.
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 | 1 | 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 |
---------------------------------------------------------------------------------------------------------------- | 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 | 1 | 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 | |------------------------------|-------------------------------|----------------|----------------------|--------|