2
...\" IconGadg.sgm /main/13 1996/09/08 20:47:14 rws $
10
.fl \" force out current output buffer
11
\!!save /psv exch def currentpoint translate 0 0 moveto
14
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
18
.ie \\*(f1 .ds f1 \\n(.f
19
.el .ie \\*(f2 .ds f2 \\n(.f
20
.el .ie \\*(f3 .ds f3 \\n(.f
21
.el .ie \\*(f4 .ds f4 \\n(.f
22
.el .tm ? font overflow
42
.el .tm ? font underflow
48
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
49
.TH "XmIconGadget" "library call"
51
\fBXmIconGadget\fR \(em The IconGadget widget class
53
.iX "iconGadget" "IconGadget"
57
#include <Xm/IconG\&.h>
61
IconGadget is an instantiable widget used to display both text and a pixmap
62
in various combinations\&.
63
Other widgets that hold the \fBXmQTcontainer\fP trait, such as
64
Container, can use IconGadget to represent objects\&.
66
IconGadget text is a compound string\&. If no text is supplied, then
67
the compound string is generated from the gadget name\&. IconGadget
68
text is placed relative to the type of associated pixmap\&.
70
Depending upon the \fBXmNviewType\fP resource, IconGadget can display
72
.IP "\fBXmLARGE_ICON\fP" 10
73
The IconGadget text string is displayed below the
74
pixmap, and centered\&.
75
.IP "\fBXmSMALL_ICON\fP" 10
76
The IconGadget text string is placed on the side of the small icon, in the
77
widget\&'s \fBXmNlayoutDirection\fP\&.
79
A bitmap mask can be supplied for each pixmap to
80
clip the pixmap into some shape other than a rectangle\&. The
81
\fBXmNlargeIconMask\fP and \fBXmNsmallIconMask\fP resources specify
82
the large and small bitmap masks respectively\&. Visual emphasis for
84
provided with the \fBXmNvisualEmphasis\fP resource\&.
85
IconGadget\&'s \fBXmNdetail\fP and \fBXmNdetailCount\fP resources provide
86
a detail view for IconGadgets, enabling the display of Strings alongside the
87
IconGadget\&. The exact layout ordering of the strings depends on the
88
associated containing widget\&.
90
IconGadget uses the \fBXmQTcontainer\fP and
91
\fBXmQTspecifyRenderTable\fP traits, and
92
holds the \fBXmQTcareParentVisual\fP and \fBXmQTcontainerItem\fP traits\&.
95
IconGadget inherits behaviour, resources, and traits from \fBObject,
97
and \fBXmGadget\fP classes\&.
99
The class pointer is \fBxmIconGadgetClass\fP\&.
101
The class name is \fBXmIconGadget\fR\&.
104
The following table defines a set of widget resources used by the
105
programmer to specify data\&. The programmer can also set the resource
106
values for the inherited classes to set attributes for this widget\&.
107
To reference a resource by name or by class in a \fB\&.Xdefaults\fP file,
108
remove the \fBXmN\fP or \fBXmC\fP prefix and use the remaining letters\&.
109
To specify one of the defined values for a resource in a \fB\&.Xdefaults\fP
110
file, remove the \fBXm\fP prefix and use the remaining letters (in
111
either lowercase or uppercase, but include any underscores between
112
words)\&. The codes in the access column indicate whether the given resource
113
can be set at creation time (C), set by using \fBXtSetValues\fP
114
(S), retrieved by using \fBXtGetValues\fP (G), or is not
120
\fBXmIconGadget Resource Set\fP
121
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
123
XmalignmentXmCAlignmentunsigned charXmALIGNMENT_CENTERCSG
125
XmNdetailXmCDetailXmStringTableNULLCSG
127
XmNdetailCountXmCDetailCountCardinal0CSG
129
XmNfontListXmCFontListXmFontListNULLCSG
131
XmNlabelStringXmCXmStringXmStringdynamicCSG
133
XmNlargeIconMaskXmCIconMaskPixmapdynamicCSG
135
XmNlargeIconPixmapXmCIconPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
137
XmNmarginHeightXmCMarginHeightDimension2CSG
139
XmNmarginWidthXmCMarginWidthDimension2CSG
141
XmNrenderTableXmCRenderTableXmRenderTabledynamicCSG
143
XmNsmallIconMaskXmCIconMaskPixmapdynamicCSG
145
XmNsmallIconPixmapXmCIconPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
147
XmNviewTypeXmCViewTypeunsigned charXmLARGE_ICONCSG
149
XmNvisualEmphasisXmCVisualEmphasisunsigned charXmNOT_SELECTEDCSG
151
XmNspacingXmCSpacingDimension4CSG
154
.IP "\fBXmNalignment\fP" 10
155
Specifies the horizontal alignment of the pixmap with
156
respect to the label when the icon is in
158
view\&. Valid values are
159
\fBXmALIGNMENT_BEGINNING\fP,
160
\fBXmALIGNMENT_CENTER\fP,
161
and \fBXmALIGNMENT_END\fP\&.
162
.IP "\fBXmNdetail\fP" 10
163
Specifies an array of \fBXmString\fRs that are the detail information
164
associated with the gadget\&.
165
.IP "\fBXmNdetailCount\fP" 10
166
Specifies the size of the \fBXmNdetail\fP array\&.
167
.IP "\fBXmNfontList\fP" 10
168
Specifies the font list associated with \fBXmIconGadget\fR\&. The font list
169
is an obsolete construct, and has been superseded by the render table\&.
170
It is included for compatibility with earlier versions of Motif, and
171
for applications that do not easily support render tables\&. The
172
default font list is derived from the default render table, and if
173
both a font list and a render table are specified, the render table
175
.IP "\fBXmNlabelString\fP" 10
176
Specifies the compound string\&.
177
If this value is NULL, it is initialized by converting the name of the
178
gadget to a compound string\&.
179
Refer to \fBXmString\fP(3)
180
for more information on the
181
creation and structure of compound strings\&.
182
.IP "\fBXmNlargeIconMask\fP" 10
183
Specifies the icon mask used when \fBXmNviewType\fP is \fBXmLARGE_ICON\fP\&.
184
.IP "\fBXmNlargeIconPixmap\fP" 10
185
Specifies the pixmap when \fBXmNviewType\fP is \fBXmLARGE_ICON\fP\&. If
186
this resource\&'s value is \fBXmUNSPECIFIED_PIXMAP\fP, there is no
188
icon pixmap is specified, and if during conversion an associated mask
189
can be fetched, then the
190
\fBXmNlargeIconMask\fP resource is set to that mask\&.
191
.IP "\fBXmNmarginHeight\fP" 10
192
Specifies the amount of vertical space between the highlight
193
and the inside (pixmap and label)\&.
194
.IP "\fBXmNmarginWidth\fP" 10
195
Specifies the amount of horizontal space between the highlight
196
and the inside (pixmap and label)\&.
197
.IP "\fBXmNrenderTable\fP" 10
198
Specifies the \fBXmRenderTable\fR of the text used in the gadget\&.
199
If \fBXmNrenderTable\fP is NULL when the IconGadget is created, the parent\&'s
200
render table resource value is used if there is a render table\&. If
201
the parent does not have a render table,
202
the parent hierarchy of the widget is
203
searched for a widget that
204
holds the \fBXmQTspecifyRenderTable\fP trait\&.
205
If such an ancestor is found, the render table is initialized to the
206
\fBXmLABEL_RENDER_TABLE\fP value of the ancestor widget\&. If no such widget
207
is found, the default is implementation dependent\&.
209
\fBXmRenderTable\fP(3) for more information on the creation and
210
structure of a \fBXmRenderTable\fR\&.
211
If both a render table and a font list are specified, the render table
212
will take precedence\&.
213
.IP "\fBXmNsmallIconMask\fP" 10
214
Specifies the icon mask used when \fBXmNviewType\fP is \fBXmSMALL_ICON\fP\&.
215
.IP "\fBXmNsmallIconPixmap\fP" 10
216
Specifies the pixmap when \fBXmNviewType\fP is \fBXmSMALL_ICON\fP\&.
218
this resource\&'s value is \fBXmUNSPECIFIED_PIXMAP\fP, there is no
220
icon pixmap is specified, and if during conversion an associated mask
221
can be fetched, then the
222
\fBXmNsmallIconMask\fP resource is set to that mask\&.
223
.IP "\fBXmNspacing\fP" 10
224
Specifies the amount of space between the pixmap and
225
the label parts of the icon\&.
226
.IP "\fBXmNviewType\fP" 10
227
Specifies the view (combination of pixmaps/text) that will be displayed\&.
228
If the IconGadget is a child of a Container widget, however, then the
229
specification of this resource will be taken from the Container\(em
230
if Container\&'s \fBXmNentryViewType\fP is either \fBXmLARGE_ICON\fP or
231
\fBXmSMALL_ICON\fP, then IconGadget\&'s \fBXmNviewType\fP takes that value;
232
otherwise, the default is \fBXmLARGE_ICON\fP\&.
233
This resource is set to one of the following:
235
.IP "\fBXmLARGE_ICON\fP" 10
236
The pixmap specified by \fBXmNlargeIconPixmap\fP is
237
displayed with the \fBXmNlabelString\fP beneath it\&.
238
.IP "\fBXmSMALL_ICON\fP" 10
239
The pixmap specified by \fBXmNsmallIconPixmap\fP is
240
displayed with the \fBXmNlabelString\fP displayed in the direction of the
241
\fBXmNlayoutDirection\fP resource\&.
243
.IP "\fBXmNvisualEmphasis\fP" 10
244
Specifies the visual state of the IconGadget\&. If the IconGadget is in a
246
all visuals are displayed using the Container \fBXmNselectColor\fP
248
It is set to one of the following:
250
.IP "\fBXmSELECTED\fP" 10
251
The IconGadget is in the selected state and displays
252
the appropriate visuals\&.
253
.IP "\fBXmNOT_SELECTED\fP" 10
254
The IconGadget is not in the selected state\&.
256
.SS "Inherited Resources"
258
IconGadget inherits behavior and resources from the
259
superclasses described in the following tables\&.
260
For a complete description of each resource, refer to the
261
reference page for that superclass\&.
266
\fBXmGadget Resource Set\fP
267
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
269
XmNbackgroundXmCBackgroundPixeldynamicCSG
271
XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
273
XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG
275
XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapdynamicCSG
277
XmNhelpCallbackXmCCallbackXtCallbackListNULLC
279
XmNforegroundXmCForegroundPixeldynamicCSG
281
XmNhighlightColorXmCHighlightColorPixeldynamicCSG
283
XmNhighlightOnEnterXmCHighlightOnEnterBooleanFalseCSG
285
XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG
287
XmNhighlightThicknessXmCHighlightThicknessDimension0CSG
289
XmNlayoutDirectionXmNCLayoutDirectionXmDirectiondynamicCG
291
XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmNONECSG
293
XmNshadowThicknessXmCShadowThicknessDimension0CSG
295
XmNtopShadowColorXmCTopShadowColorPixeldynamicCSG
297
XmNtopShadowPixmapXmCTopShadowPixmapPixmapdynamicCSG
299
XmNtraversalOnXmCTraversalOnBooleanFalseCSG
301
XmNunitTypeXmCUnitTypeunsigned chardynamicCSG
303
XmNuserDataXmCUserDataXtPointerNULLCSG
310
\fBRectObj Resource Set\fP
311
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
313
XmNancestorSensitiveXmCSensitiveBooleandynamicG
315
XmNborderWidthXmCBorderWidthDimension0N/A
317
XmNheightXmCHeightDimensiondynamicCSG
319
XmNsensitiveXmCSensitiveBooleanTrueCSG
321
XmNwidthXmCWidthDimensiondynamicCSG
323
XmNxXmCPositionPosition0CSG
325
XmNyXmCPositionPosition0CSG
332
\fBObject Resource Set\fP
333
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
335
XmNdestroyCallbackXmCCallbackXtCallbackListNULLC
338
.SS "Additional Behavior"
340
IconGadget has no behavior\&.
341
.SS "Virtual Bindings"
343
The bindings for virtual keys are vendor specific\&.
344
For information about bindings for virtual buttons and keys, see
345
\fBVirtualBindings\fP(3)\&.
346
.SS "Errors/Warnings"
348
The toolkit will display a warning if an incorrect value is given
349
for an enumeration resource\&.
353
\fBXmContainer\fP(3),
354
\fBXmCreateIconGadget\fP(3),
356
\fBXmVaCreateIconGadget\fP(3), and
357
\fBXmVaCreateManagedIconGadget\fP(3)\&.