2
.\" describe how a callback arg item is formatted
10
.TH XbaeCaption 3x "15 June, 1999" "Version 4.7" "Xbae Widget Set"
13
\- The Bellcore Application Environment (BAE) XbaeCaption widget class.
15
#include <Xbae/Caption.h>
18
is a simple manager used to associate a label with its
19
single child. The label may be either an
21
or a Pixmap and can be displayed in any one of twelve positions
22
around the edge of the child.
24
performs geometry management so that its size
25
always matches its child's size plus the size of the label and label
30
child, groups of related
31
widgets can be labeled in a visually appealing manner.
33
is also useful for associating labels with individual
37
inherits behavior and resources from the
46
.BR xbaeCaptionWidgetClass .
51
The following table lists the new resources defined by
53
The codes in the Access column indicate whether
54
the given resource can be set at creation time (C), or set by
55
using XtSetValues (S), or retrieved by using XtGetValues (G).
60
lb | lb | lb | lb | lb
61
lp8 | lp8 | lp8 | lp8 | lp8 .
62
XbaeCaption Resource Set
64
Name Class Type Default Access
66
XmNfontList XmCFontList FontList dynamic CSG
68
XmNlabelAlignment XmCLabelAlignment XbaeLabelAlignment XbaeAlignmentCenter CSG
70
XmNlabelOffset XmCLabelOffset Int 0 CSG
72
XmNlabelPixmap XmCLabelPixmap PrimForegroundPixmap XmUNSPECIFIED_PIXMAP CSG
74
XmNlabelPosition XmCLabelPosition XbaeLabelPosition XbaePositionLeft CSG
76
XmNlabelString XmCXmString XmString widget name CSG
78
XmNlabelTextAlignment XmCAlignment Alignment XmALIGNMENT_CENTER CSG
80
XmNlabelType XmCLabelType LabelType XmString CSG
84
Specifies the font of the text used in the caption label. If this
87
at initialization, it is initialized by looking up the
88
parent hierarchy of the widget for an ancestor that is a subclass of
95
an ancestor is found, the font list is initialized to the appropriate
96
default font list of the ancestor widget
97
.B XmNdefaultFontList for
108
for more information on the
109
creation and structure of a font list. This resource is copied.
110
.LI XmNlabelAlignment
111
Specifies the alignment of the caption label along the side of the
112
caption child. Must be one of the enumerated
113
.B XbaeLabelAlignment
115
.BR XbaeAlignmentTopOrLeft ,
116
.BR XbaeAlignmentCenter ,
117
.BR XbaeAlignmentBottomOrRight .
119
Specifies the offset, in pixels, of the caption
120
label from the caption child. If the offset is negative, then the
121
caption label will overlap the caption child by that many pixels.
123
Specifies the caption label pixmap when
128
Specifies on which side of the caption child the caption label should
129
be placed. Must be one of the enumerated
132
.BR XbaePositionLeft ,
133
.BR XbaePositionRight ,
134
.BR XbaePositionTop ,
135
.BR XbaePositionBottom .
137
Specifies the compound string when the
142
it is initialized by converting the name of the
143
widget to a compound string. Refer to
145
for more information on the creation and structure of compound strings.
146
.LI XmNlabelTextAlignment
147
Specifies the text alignment for the caption label. This resource is
148
only useful for multi line caption labels. Valid values are:
149
.B XmALIGNMENT_BEGINNING
150
left alignment causes the left sides of the lines of text to be
152
.B XmALIGNMENT_CENTER
153
center alignment causes the centers of the lines of text to be vertically
156
right alignment causes the right sides of the
157
lines of text to be vertically aligned.
159
Specifies the caption label type. Valid values are:
161
- the caption label will display the
164
- the caption label will display the
167
.SS "Inherited Resources"
168
The following table lists the resources which
176
description of each resource, refer to the man page for that superclass.
177
The codes in the "Access" column indicate whether the given resource can
178
be set at creation time (C), or set by using XtSetValues (S), or
179
retrieved by using XtGetValues (G).
184
lb | lb | lb | lb | lb
185
lp8 | lp8 | lp8 | lp8 | lp8 .
186
XmManager Resource Set
188
Name Class Type Default Access
190
XmNbottomShadowColor XmCBottomShadowColor Pixel dynamic CSG
192
XmNbottomShadowPixmap XmCBottomShadowPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
194
XmNforeground XmCForeground Pixel dynamic CSG
196
XmNhelpCallback XmCCallback Callback NULL CSG
198
XmNhighlightColor XmCHighlightColor Pixel dynamic CSG
200
XmNhighlightPixmap XmCHighlightPixmap Pixmap dynamic CSG
202
XmNnavigationType XmCNavigationType XmNavigationType XmTAB_GROUP CSG
204
XmNshadowThickness XmCShadowThickness Dimension 2 CSG
206
XmNstringDirection XmCStringDirection XmStringDirection dynamic CG
208
XmNtopShadowColor XmCTopShadowColor Pixel dynamic CSG
210
XmNtopShadowPixmap XmCTopShadowPixmap Pixmap dynamic CSG
212
XmNtraversalOn XmCTraversalOn Boolean True CSG
214
XmNunitType XmCUnitType UnsignedChar dynamic CSG
216
XmNuserData XmCUserData Pointer NULL CSG
223
lb | lb | lb | lb | lb
224
lp8 | lp8 | lp8 | lp8 | lp8 .
225
Composite Resource Set
227
Name Class Type Default Access
229
XmNchildren XmCReadOnly WidgetList private G
231
XmNinsertPosition XmCInsertPosition Function NULL CSG
233
XmNnumChildren XmCReadOnly Cardinal 4 G
240
lb | lb | lb | lb | lb
241
lp8 | lp8 | lp8 | lp8 | lp8 .
244
Name Class Type Default Access
246
XmNaccelerators XmCAccelerators AcceleratorTable NULL CSG
248
XmNancestorSensitive XmCSensitive Boolean dynamic CSG
250
XmNbackground XmCBackground Pixel dynamic G
252
XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
254
XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG
256
XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
258
XmNborderWidth XmCBorderWidth Dimension 0 CSG
260
XmNcolormap XmCColormap Colormap dynamic CG
262
XmNdepth XmCDepth Int dynamic CG
264
XmNdestroyCallback XmCCallback Callback NULL CSG
266
XmNheight XmCHeight Dimension dynamic CSG
268
XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True CG
270
XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG
272
XmNscreen XmCScreen Screen dynamic CG
274
XmNsensitive XmCSensitive Boolean True CSG
276
XmNtranslations XmCTranslations TranslationTable internal CSG
278
XmNwidth XmCWidth Dimension dynamic CSG
280
XmNx XmCPosition Position 0 CSG
282
XmNy XmCPosition Position 0 CSG
286
.B XbaeCaption inherits translations from
288
.SS "Type Converters"
291
In addition to the standard type converters registered by Xt and Motif,
293
registers the following additional type converters:
294
.IP \fCCvtStringToLabelAlignment(\|)\fP
295
Converts a String to the enumerated
296
.B XbaeLabelAlignment
304
.BR XbaeAlignmentTopOrLeft .
308
.BR XbaeAlignmentCenter .
315
.BR XbaeAlignmentBottomOrRight .
316
This converter allows the
318
resource to be specified in a resource file. The converter is case
320
.IP \fCCvtStringToLabelPosition(\|)\fP
321
Converts a String to the enumerated
326
.BR XbaePositionLeft .
330
.BR XbaePositionRight .
332
.B Top is converted to
333
.BR XbaePositionTop .
335
.B Bottom is converted to
336
.BR XbaePositionBottom .
337
This converter allows the
339
resource to be specified in a resource file. The converter is case
342
.SS "Public Functions"
344
The following external entry points to
350
.B XbaeCreateCaption(\|)
356
Widget XbaeCreateCaption(\|)
364
Specifies the parent widget ID.
366
Specifies the name of the created widget
368
Specifies the argument list
370
Specifies the number of attribute/value pairs in the argument list (arglist)
372
.B XbaeCreateCaption(\|)
373
creates an instance of an XbaeCaption widget and returns the associated
376
.SS "Virtual Bindings"
378
The bindings for virtual keys are vendor specific. For information about
379
bindings for virtual buttons and keys, see
380
.BR VirtualBindings(3X) .
383
Bellcore, Piscataway NJ; author
385
(aw@bae.bellcore.com)
394
This document describes XbaeCaption from Xbae Version 4.6.
396
.B Core(3X), Composite(3X), XmManager(3X), XmLabel(3X)
397
.SH "Notice of Limitation"
399
Bellcore, previous and current maintainers of the Xbae widgets
400
(collectively 'authors') provide this information solely
401
to professionals who have the appropriate degree of experience to
402
understand and interpret its contents in accordance with generally
403
accepted engineering or other professional standards and applicable
404
regulations. No recommendations as to products or vendors is made or
407
While the information contained herein has been prepared from sources
408
deemed to be reliable, the authors reserve the right to revise the
409
information without notice, but have no obligation to do so. Unless the
410
recipient has been expressly granted a license by Bellcore under
411
separate applicable written agreement with Bellcore, no license,
412
expressed or implied, is granted under any patents, copyrights or other
413
intellectual property rights. Use of the information is at your
414
discretion and shall not be deemed an inducement by Bellcore to infringe
415
any existing or later-issued patent, copyrights or other intellectual
418
THE AUTHORS MAKE NO REPRESENTATIONS AND EXTENDS NO WARRANTIES, EXPRESS OR
419
IMPLIED, WITH RESPECT TO THE INFORMATION, INCLUDING, BUT NOT LIMITED TO,
420
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ANY PARTICULAR
421
PURPOSE, AND THE WARRANTY AGAINST INFRINGEMENT OF PATENTS OR OTHER
422
INTELLECTUAL PROPERTY RIGHTS. THE INFORMATION IS PROVIDED ``AS IS'', AND
423
IN NO EVENT SHALL THE AUTHORS OR ANY OF ITS AFFILIATES BE LIABLE FOR ANY
424
DAMAGES, INCLUDING ANY LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL
425
DAMAGES RELATING TO THE INFORMATION.
427
Copyright 1991 Bellcore. All Rights Reserved.
428
Copyright 1995-99 Andrew Lister
431
The above no warranty extends to all additions and contributions. No
432
contributor shall be held liable; this work is provided ``as is''. If
433
this is a problem for you, then don't use this software.