4
\fBXmIconBox\fP \(em The IconBox widget class
7
#include <Xm/IconBox.h>
11
The Icon Box widget lays out its children on a grid with each child forced
12
to be the same size and with the location of each child specified as an X
13
and Y location on the grid.
15
The size of the Icon Box, its children, and the number of cells displayed
16
are calculated as described below. The general idea is that all children
17
are always be shown and should be given their desired size whenever possible.
18
The user may add or delete cells by resizing this window using the window
21
The preferred size is calculated by using the maximum desired child height
22
or width and making sure that these are no smaller than the minimum sizes.
23
This size is multiplied by the number of cells along the axis and properly
24
padded to come up with a preferred size. The number of cells is the maximum
25
of the largest cellX or cellY value and the minimum number of horizontal or
28
If the Icon box is forced larger than its preferred size more cells are
29
added at the bottom-right of the widget while the children all remain at
30
their preferred sizes\&.
32
If the Icon box is forced smaller than its preferred size each cell is
33
forced to be smaller in order to allow all children to fit within the
34
Icon Box. All children will be forced to the same smaller size.
37
Icon Box inherits behavior, resources, and traits from \fBCore\fP,
38
\fBComposite\fP, \fBConstraint\fP, and
41
The class pointer is \fBxmIconBoxWidgetClass\fP\&.
43
The class name is \fBXmIconBox\fP\&.
46
The following table defines a set of widget resources used by the
47
programmer to specify data\&. The programmer can also set the resource
48
values for the inherited classes to set attributes for this widget\&.
49
To reference a resource by name or by class in a \fB\&.Xdefaults\fP file,
50
remove the \fBXmN\fP or \fBXmC\fP prefix and use the remaining letters\&.
51
To specify one of the defined values for a resource in a \fB\&.Xdefaults\fP
52
file, remove the \fBXm\fP prefix and use the remaining letters (in
53
either lowercase or uppercase, but include any underscores between
54
words)\&. The codes in the access column indicate if the given resource
55
can be set at creation time (C), set by using \fBXtSetValues\fP
56
(S), retrieved by using \fBXtGetValues\fP (G), or is not
63
\fBXmIconBox Resource Set\fP
64
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
66
XmNhorizontalMarginXmCMarginDimension4CSG
68
XmNminimumHorizontalCellsXmCDefaultCellsint8CSG
70
XmNminimumVerticalCellsXmCDefaultCellsint4CSG
72
XmNminimumCellHeightXmCMinimumCellSizeDimension10CSG
74
XmNminimumCellWidthXmCMinimumCellSizeDimension20CSG
76
XmNverticalMarginXmCMarginDimension4CSG
79
.IP "\fBXmNhorizontalMargin\fP" 10
80
.IP "\fBXmNverticalMargin\fP" 10
81
The amount of space between each cell and its neighbor or the edge of the Icon
83
.IP "\fBXmNminimumHorizontalCells\fP" 10
84
.IP "\fBXmNminimumVerticalCells\fP" 10
85
The minimum number of cells to display in the horizontal and vertical directions.
86
This number of cells will always be displayed.
87
.IP "\fBXmNminimumCellWidth\fP" 10
88
.IP "\fBXmNminimumCellHeight\fP" 10
89
The smallest size the cells are allowed to be in the direction specified.
91
.SS "Constraint Resources"
97
\fBXmIconBox Constraint Resource Set\fP
98
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
100
XmNcellXXmCCellXShortXmIconBoxAnyCellCSG
102
XmNcellYXmCCellYShortXmIconBoxAnyCellCSG
105
.IP "\fBXmNcellX\fP" 10
106
.IP "\fBXmNcellY\fP" 10
107
The location of this cell in cell space. These coordinates may be any positive
108
integer. They determine where this widget will be placed relative to its neighbors.
109
Having two children at the same cell X and cell Y location will result in undefined
110
behavior. To place a cell at any empty cell, set cell X and cell Y to the value
112
.SS "Inherited Resources"
114
Icon Box inherits behavior and resources from the
115
superclasses described in the following tables\&.
116
For a complete description of each resource, refer to the
117
reference page for that superclass\&.
123
\fBXmManager Resource Set\fP
124
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
126
XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG
128
XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
130
XmNforegroundXmCForegroundPixeldynamicCSG
132
XmNhelpCallbackXmCCallbackXtCallbackListNULLC
134
XmNhighlightColorXmCHighlightColorPixeldynamicCSG
136
XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG
138
XmNinitialFocusXmCInitialFocusWidgetdynamicCSG
140
XmNlayoutDirectionXmCLayoutDirectionXmDirectiondynamicCG
142
XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmTAB_GROUPCSG
144
XmNpopupHandlerCallbackXmCCallbackXtCallbackListNULLC
146
XmNshadowThicknessXmCShadowThicknessDimensiondynamicCSG
148
XmNstringDirectionXmCStringDirectionXmStringDirectiondynamicCG
150
XmNtopShadowColorXmCTopShadowColorPixeldynamicCSG
152
XmNtopShadowPixmapXmCTopShadowPixmapPixmapdynamicCSG
154
XmNtraversalOnXmCTraversalOnBooleanTrueCSG
156
XmNunitTypeXmCUnitTypeunsigned chardynamicCSG
158
XmNuserDataXmCUserDataXtPointerNULLCSG
166
\fBComposite Resource Set\fP
167
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
169
XmNchildrenXmCReadOnlyWidgetListNULLG
171
XmNinsertPositionXmCInsertPositionXtOrderProcNULLCSG
173
XmNnumChildrenXmCReadOnlyCardinal0G
181
\fBCore Resource Set\fP
182
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
184
XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicN/A
186
XmNancestorSensitiveXmCSensitiveBooleandynamicG
188
XmNbackgroundXmCBackgroundPixeldynamicCSG
190
XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
192
XmNborderColorXmCBorderColorPixelXtDefaultForegroundCSG
194
XmNborderPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
196
XmNborderWidthXmCBorderWidthDimension0CSG
198
XmNcolormapXmCColormapColormapdynamicCG
200
XmNdepthXmCDepthintdynamicCG
202
XmNdestroyCallbackXmCCallbackXtCallbackListNULLC
204
XmNheightXmCHeightDimensiondynamicCSG
206
XmNinitialResourcesPersistentXmCInitialResourcesPersistentBooleanTrueC
208
XmNmappedWhenManagedXmCMappedWhenManagedBooleanTrueCSG
210
XmNscreenXmCScreenScreen *dynamicCG
212
XmNsensitiveXmCSensitiveBooleanTrueCSG
214
XmNtranslationsXmCTranslationsXtTranslationsdynamicCSG
216
XmNwidthXmCWidthDimensiondynamicCSG
218
XmNxXmCPositionPosition0CSG
220
XmNyXmCPositionPosition0CSG
225
XmIconBox inherits translations from XmManager\&.
229
\fBComposite\fP(3), \fBConstraint\fP(3),
231
\fBXmCreateIconBox\fP(3),
232
\fBXmIconBoxIsCellEmpty\fP(3),
234
\fBXmVaCreateIconBox\fP(3), and
235
\fBXmVaCreateManagedIconBox\fP(3)\&.
240
Copyright (c) 1992 by Integrated Computer Solutions, Inc.