XmTabStack(3) | Library Functions Manual | XmTabStack(3) |
XmTabStack - The TabStack widget class
#include <Xm/TabStack.h>
"XmTabStack" "widget class" TabStack" The XmTabStack widget manages a group of widgets such that only one widget in the group is visible at a time. Each child is associated with a "tab" that displays a text label and/or a pixmap. By selecting the "tab" the user interactively determines which child is displayed. This widget exhibits behavior similar to the Microsoft Windows(TM) Tab Control.
The tabs can be configured to appear above, below, to the right, and to the left of a work area with the text oriented in any of the four cardinal directions.
The TabStack allows the user to select, either by pointer or keyboard traversal, tabs. When a tab is selected it changes appearance so that it appears to be raised above the other tabs. When a tab is selected the child associated with the tab is made visible. One tab is selected at all times.
TabStack inherits behavior and resources form Core, Composite, Constraint, XmManager and XmBulletinBoard Classes.
The class pointer is xmTabStackWidgetClass.
The class name is XmTabStack.
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 .Xdefaults file, remove the XmN or XmC prefix and use the remaining letters. To specify one of the defined values for a resource in a .Xdefaults file, remove the Xm or 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 XtSetValues (S), retrieved by using XtGetValues (G), or is not applicable (N/A).
XmTabStack Resource Set | ||
Name | Default | Access |
Class | Type | |
XmCAllowTearOffTabs | Boolean | |
XmNfontList | Dynamic | CSG |
XmCFontList | XmFontList | |
XmNhighlightThickness | 2 | CSG |
XmCHighlightThickness | Dimension | |
XmNstackedEffect | True | CSG |
XmCStackedEffect | Boolean | |
XmNtabAutoSelect | True | CG |
XmCTabAutoSelect | Boolean | |
XmNtabCornerPercent | 40 | CSG |
XmCTabCornerPercent | int | |
XmNtabLabelSpacing | 2 | CSG |
XmCTabLabelSpacing | Dimension | |
XmNtabMarginHeight | 3 | CSG |
XmCTabMarginHeight | Dimension | |
XmNtabMarginWidth | 3 | CSG |
XmCTabMarginWidth | Dimension | |
XmNtabMode | XmTABS_BASIC | CSG |
XmCTabMode | int | |
XmNtabOffset | 10 | CSG |
XmCTabOffset | Dimension | |
XmNtabOrientation | Dynamic | CSG |
XmCTabOrientation | int | |
XmNtabSelectColor | Dynamic | CSG |
XmCTabSelectColor | Pixel | |
XmNtabSelectedCallback | NULL | CS |
XmCCallback | XtCallbackList | |
XmNtabSelectPixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmCTabSelectPixmap | Pixmap | |
XmNtabSide | XmTABS_ON_TOP | CSG |
XmCTabSide | int | |
XmNtabStyle | XmTABS_BEVELED | CSG |
XmCTabStyle | int | |
XmNuniformTabSize | True | CSG |
XmCUniformTabSize | Boolean | |
XmNuseImageCache | True | CSG |
XmCUseImageCache | Boolean |
XmTabStack Constraint Resource Set | ||
Name | Default | Access |
Class | Type | |
XmNfreeTabPixmap | False | CSG |
XmCFreeTabPixmap | Boolean | |
XmNtabAlignment | XmALIGNMENT_CENTER | CSG |
XmCAlignment | unsigned char | |
XmNtabBackground | Dynamic | CSG |
XmCBackground | Pixel | |
XmNtabBackgroundPixmap | Dynamic | CSG |
XmCBackgroundPixmap | Pixmap | |
XmNtabForeground | Dynamic | CSG |
XmCForeground | Pixel | |
XmNtabLabelPixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmCTabLabelPixmap | Pixmap | |
XmNtabLabelString | NULL | CSG |
XmCTabLabelString | XmString | |
XmNtabPixmapPlacement | XmPIXMAP_RIGHT | CSG |
XmCTabPixmapPlacement | XmPixmapPlacement | |
XmNtabStringDirection | XmSTRING_DIRECTION_DEFAULT | CSG |
XmCTabStringDirection | unsigned char |
TabStack inherits behavior and resources from the following superclasses. For a complete description of each resource, refer to the man page for that superclass.
XmBulletinBoard Resource Set | ||
Name | Default Access | |
Class | Type | |
XmNallowOverlap | True | CSG |
XmCAllowOverlap | Boolean | |
XmNautoUnmanage | False | CG |
XmCAutoUnmanage | Boolean | |
XmNbuttonFontList | dynamic | CSG |
XmCButtonFontList | XmFontList | |
XmNcancelButton | NULL | SG |
XmCWidget | Widget | |
XmNdefaultButton | NULL | SG |
XmCWidget | Widget | |
XmNdefaultPosition | True | CSG |
XmCDefaultPosition | Boolean | |
XmNdialogStyle | dynamic | CSG |
XmCDialogStyle | unsigned char | |
XmNdialogTitle | NULL | CSG |
XmCDialogTitle | XmString | |
XmNfocusCallback | NULL | C |
XmCCallback | XtCallbackList | |
XmNlabelFontList | dynamic | CSG |
XmCLabelFontList | XmFontList | |
XmNmapCallback | NULL | C |
XmCCallback | XtCallbackList | |
XmNmarginHeight | 10 | CSG |
XmCMarginHeight | Dimension | |
XmNmarginWidth | 10 | CSG |
XmCMarginWidth | Dimension | |
XmNnoResize | False | CSG |
XmCNoResize | Boolean |
XmManager Resource Set | ||
Name | Default Access | |
Class | Type | |
XmNbottomShadowColor | dynamic | CSG |
XmCBottomShadowColor | Pixel | |
XmNbottomShadowPixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmCBottomShadowPixmap | Pixmap | |
XmNforeground | dynamic | CSG |
XmCForeground | Pixel | |
XmNhelpCallback | NULL | C |
XmCCallback | XtCallbackList | |
XmNhighlightColor | dynamic | CSG |
XmCHighlightColor | Pixel | |
XmNhighlightPixmap | dynamic | CSG |
XmCHighlightPixmap | Pixmap | |
XmNinitialFocus | dynamic | CSG |
XmCInitialFocus | Widget | |
XmNnavigationType | XmTAB_GROUP | CSG |
XmCNavigationType | XmNavigationType | |
XmNshadowThickness | 2 | CSG |
XmCShadowThickness | Dimension | |
XmNstringDirection | dynamic | CG |
XmCStringDirection | XmStringDirection | |
XmNtopShadowColor | dynamic | CSG |
XmCTopShadowColor | Pixel | |
XmNtopShadowPixmap | dynamic | CSG |
XmCTopShadowPixmap | Pixmap | |
XmNtraversalOn | True | CSG |
XmCTraversalOn | Boolean | |
XmNunitType | dynamic CSG | |
XmCUnitType | unsigned char | |
XmNuserData | NULL | CSG |
XmCUserData | XtPointer |
Composite Resource Set | ||
Name | Default Access | |
Class | Type | |
XmNchildren | NULL | G |
XmCReadOnly | WidgetList | |
XmNinsertPosition | NULL | CSG |
XmCInsertPosition | XtOrderProc | |
XmNnumChildren | 0 | G |
XmCReadOnly | Cardinal |
Core Resource Set | ||
Name | Default Access | |
Class | Type | |
XmNaccelerators | dynamic | N/A |
XmCAccelerators | XtAccelerators | |
XmNancestorSensitive | dynamic | G |
XmCSensitive | Boolean | |
XmNbackground | dynamic | CSG |
XmCBackground | Pixel | |
XmNbackgroundPixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmCPixmap | Pixmap | |
XmNborderColor | XtDefaultForeground | CSG |
XmCBorderColor | Pixel | |
XmNborderPixmap | XmUNSPECIFIED_PIXMAP | CSG |
XmCPixmap | Pixmap | |
XmNborderWidth | 0 | CSG |
XmCBorderWidth | Dimension | |
XmNcolormap | dynamic | CG |
XmCColormap | Colormap | |
XmNdepth | dynamic | CG |
XmCDepth | int | |
XmNdestroyCallback | NULL | C |
XmCCallback | XtCallbackList | |
XmNheight | dynamic | CSG |
XmCHeight | Dimension | |
XmNinitialResourcesPersistent | True | C |
XmCInitialResourcesPersistent | Boolean | |
XmNmappedWhenManaged | True | CSG |
XmCMappedWhenManaged | Boolean | |
XmNscreen | Screen* | dynamic |
XmCScreen | Screen | |
XmNsensitive | True | CSG |
XmCSensitive | Boolean | |
XmNtranslations | dynamic | CSG |
XmCTranslations | XtTranslations | |
XmNwidth | dynamic | CSG |
XmCWidth | Dimension | |
XmNx | 0 | CSG |
XmCPosition | Position | |
XmNy | 0 | CSG |
XmCPosition | Position |
A pointer to the following structure is passed to each callback:
typedef struct _XmTabStackCallbackStruct { int reason; XEvent *event; Widget selected_child; } XmTabStackCallbackStruct;
XmTabStack includes the translations from the XmManager.
The XmTabStack has no additional behavior.
The bindings for virtual keys are vendor specific. For information about bindings for virtual buttons and keys, see VirtualBindings(3X).
XmBulletinBoard(3), Composite(3), Constraint(3), Core(3), XmCreateTabStack(3), XmManager(3), XmVaCreateTabStack(3), and XmVaCreateManagedTabStack(3).