Table of Contents

NAME

XfwfRowCol

DESCRIPTION

The RowCol widget forces all its children into rows and columns. The children keep their preferred size, but the preferred position is ignored. Resources determine how many rows or columns their should be (or as many as will fit) and if the children should be layed out in rows or in columns. In both methods, the children are placed on a grid, the size of which is determined by the width (height) of the widest (tallest) child.

The children can be aligned in several ways: they can be placed in the center of their grid cell or against the edges. This is controlled by a resource of type Alignment.

Public variables
_____________________________________________________________

|
XfwfRowCol
| Name
| Class | Type | Default | XtNstoreByRow | XtCStoreByRow | Boolean | True
| XtNrows
| XtCRows | int | 0 | XtNcolumns | XtCColumns | int | 0 | XtNalignment | XtCAlignment | Alignment | XfwfTopLeft | XtNshrinkToFit| XtCShrinkToFit| Boolean | False | | | | |_______________|________________|____________|______________

XtNstoreByRow
The child widgets can be layed out in rows (left to right) or in columns (top to bottom). The resource storeByRow can be True or False. True means children are added to the right of the previous one until the row is full, like words are added to a text. False means children are added below the previous one, until the column is full.

XtNrows
The number of rows can be set with rows, or the number of columns can be set with columns. If both are nonzero, rows will be ignored. If rows is zero, there will be as many rows as needed. If columns is zero, there will be as many columns as needed. However, if both are zero, there will be as many columns as will fit in the current width of the RowCol widget. By default, both rows and columns are zero.

XtNcolumns

XtNalignment
The area of the RowCol widget is partitioned into rect­ angular cells (a grid). The cells are just large enough to contain the widest and the tallest of the children. Within the cell, the children can be put in the top left corner (the default) or against one of the edges or in the center. This is set with the alignment resource. The type Alignment is defined in the ancestor class `Common'.

XtNshrinkToFit
The resource shrinkToFit determines how the size of the RowCol widget itself is computed. When it is False (default), the location resource is used to compute the widget's preferred size. When the value is True, the preferred size is computed fromthe total width and height of the children. For example, when the widest child has a width of w and columns > 0, the preferred width will be columns * w + frame width. A similar com­ putation is used for the height. If columns > 0, only the height is computed this way. If columns = 0, rows > 0, only the width is computed.

XtNframeType
The inherited resource frameType is given a default value of XfwfSunken, instead of the inherited default XfwfRaised. The frame width is set to a default of 2 pixels, instead of 0.

XtNframeWidth

_____________________________________________________
|
XfwfBoard
| Name
| Class | Type | Default
| XtNabs_x
| XtCAbs_x | Position | 0
| XtNrel_x
| XtCRel_x | Float | "0.0"
| XtNabs_y
| XtCAbs_y | Position | 0
| XtNrel_y
| XtCRel_y | Float | "0.0" | XtNabs_width | XtCAbs_width | Position | 0 | XtNrel_width | XtCRel_width | Float | "1.0" | XtNabs_height| XtCAbs_height| Position | 0 | XtNrel_height| XtCRel_height| Float | "1.0"
| XtNhunit
| XtCHunit | Float | "1.0"
| XtNvunit
| XtCVunit | Float | "1.0" | XtNlocation | XtCLocation | String | NULL | | | | |______________|_______________|___________|_________

________________________________________________________________________________________
|
XfwfFrame | Name | Class | Type | Default | XtNcursor | XtCCursor | Cursor | None | XtNframeType | XtCFrameType | FrameType | XfwfRaised | XtNframeWidth | XtCFrameWidth | Dimension | 0 | XtNouterOffset | XtCOuterOffset | Dimension | 0 | XtNinnerOffset | XtCInnerOffset | Dimension | 0 | XtNshadowScheme | XtCShadowScheme | ShadowScheme | XfwfAuto | XtNtopShadowColor | XtCTopShadowColor | Pixel | compute_topcolor | XtNbottomShadowColor | XtCBottomShadowColor | Pixel | compute_bottomcolor | XtNtopShadowStipple | XtCTopShadowStipple | Bitmap | NULL | XtNbottomShadowStipple| XtCBottomShadowStipple| Bitmap | NULL | | | | |_______________________|________________________|_______________|______________________

___________________________________________________________________________________
|
XfwfCommon | Name | Class | Type | Default | XtNtraversalOn | XtCTraversalOn | Boolean | True | XtNhighlightThickness| XtCHighlightThickness| Dimension | 2 | XtNhighlightColor | XtCHighlightColor | Pixel | XtDefaultForeground | XtNhighlightPixmap | XtCHighlightPixmap | Pixmap | None | XtNnextTop | XtCNextTop | Callback | NULL | XtNuserData | XtCUserData | Pointer | NULL | | | | |______________________|_______________________|____________|______________________

_____________________________________________________________
Composite Name Class Type Default XtNchildren XtCChildren WidgetList NULL insertPosition XtCInsertPosition XTOrderProc NULL numChildren XtCNumChildren Cardinal 0

_____________________________________________________________
| | | | ___|_______________|___________________|______________|_________|_____ | | | Core | | |
| Na|me || Class | | Type | | De|fault
| Xt|Nx
|| XtCX | | Position | | 0 |
| Xt|Ny
|| XtCY | | Position | | 0 |
| Xt|Nwidth
|| XtCWidth | | Dimension | | 0 |
| Xt|Nheight
|| XtCHeight | | Dimension | | 0 |
| bo|rderWidth
|| XtCBorderWidth | | Dimension | | 0 |
| Xt|Ncolormap
|| XtCColormap | | Colormap | | NU|LL
| Xt|Ndepth
|| XtCDepth | | Int | | 0 | | de|stroyCallback || XtCDestroyCallback| | XTCallback|List | NU|LL | Xt|Nsensitive || XtCSensitive | | Boolean | | Tr|ue
| Xt|Ntm
|| XtCTm | | XTTMRec | | NU|LL | an|cestorSensitive|| XtCAncestorSensiti|ve| Boolean | | Fa|lse | ac|celerators || XtCAccelerators | | XTTranslat|ions | NU|LL
| bo|rderColor
|| XtCBorderColor | | Pixel | | 0 | | bo|rderPixmap || XtCBorderPixmap | | Pixmap | | NU|LL
| ba|ckground
|| XtCBackground | | Pixel | | 0 | | ba|ckgroundPixmap || XtCBackgroundPixma|p | Pixmap | | NU|LL | ma|ppedWhenManaged|| XtCMappedWhenManag|ed| Boolean | | Tr|ue
| Xt|Nscreen
|| XtCScreen | | Screen * | | NU|LL | | || | | | | | |___|______________||___________________|_|____________|____|____|____ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
|
|


Table of Contents