#include <Xm/Xm.h>
The class pointer is compositeWidgetClass.
The class name is Composite.
Composite resource set
Name | Class | Type | Default | Access |
---|---|---|---|---|
XmNchildren | XmCReadOnly | WidgetList | NULL | G |
XmNinsertPosition | XmCInsertPosition | XtOrderProc | NULL | CSG |
XmNnumChildren | XmCReadOnly | Cardinal | 0 | G |
-------------------------------------------------------------------------- | Name | Class | Type | Default | Access| |------------------|-------------------|-------------|-----------|--------| | XmNchildren | XmCReadOnly | WidgetList | NULL | G | |------------------|-------------------|-------------|-----------|--------| | XmNinsertPosition| XmCInsertPosition| XtOrderProc| NULL | CSG | |------------------|-------------------|-------------|-----------|--------| | XmNnumChildren | XmCReadOnly | Cardinal | 0 | G | |------------------|-------------------|-------------|-----------|--------|
The following procedure pointer in a composite widget instance is of type XtOrderProc:
Cardinal (* XtOrderProc) (widget) Widget w;
Composite widgets that allow clients to order their children (usually homogeneous boxes) can call their widget instance's insert_position procedure from the class's insert_child procedure to determine where a new child should go in its children array. Thus, a client of a composite class can apply different sorting criteria to widget instances of the class, passing in a different insert_position procedure when it creates each composite widget instance.
The return value of the insert_position procedure indicates how many children should go before the widget. Returning zero indicates that the widget should go before all other children; returning num_children indicates that it should go after all other children. The default insert_position function returns num_children and can be overridden by a specific composite widget's resource list or by the argument list provided when the composite widget is created.
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 | |------------------------------|-------------------------------|----------------|----------------------|--------|