File: XmPanedWindow.3

package info (click to toggle)
motif 2.3.4-13
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 81,160 kB
  • ctags: 51,769
  • sloc: ansic: 596,938; cpp: 3,951; yacc: 2,854; makefile: 2,070; csh: 1,199; sh: 1,070; lex: 455
file content (486 lines) | stat: -rw-r--r-- 17,591 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
'\" t
...\" PanedWin.sgm /main/9 1996/09/08 20:55:13 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl			\" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl			\" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie     \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie     !\\*(f4 \{\
.	ft \\*(f4
.	ds f4\"
'	br \}
.el .ie !\\*(f3 \{\
.	ft \\*(f3
.	ds f3\"
'	br \}
.el .ie !\\*(f2 \{\
.	ft \\*(f2
.	ds f2\"
'	br \}
.el .ie !\\*(f1 \{\
.	ft \\*(f1
.	ds f1\"
'	br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
.TH "XmPanedWindow" "library call"
.SH "NAME"
\fBXmPanedWindow\fP \(em The PanedWindow widget class
.iX "XmPanedWindow"
.iX "widget class" "PanedWindow"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/PanedW\&.h>
.fi
.SH "DESCRIPTION"
.PP
PanedWindow is a composite widget that lays out children in a
vertically tiled format\&. Children appear in top-to-bottom fashion, with
the first child inserted appearing at the top of the PanedWindow and the
last child inserted appearing at the bottom\&. The
PanedWindow grows to match the width of its widest child and all
other children are forced to this width\&. The height of the PanedWindow
is equal to the sum of the heights of all its children, the spacing
between them, and the size of the top and bottom margins\&.
.PP
The user can also adjust the size of the panes\&. To
facilitate this adjustment, a pane control sash is created for most
children\&. The sash appears as a square box positioned on the bottom of
the pane that it controls\&. The user can adjust the size of
a pane by using the mouse or keyboard\&.
.PP
The PanedWindow is also a constraint widget, which means that it
creates and manages a set of constraints for each child\&. You can
specify a minimum and maximum size for each pane\&. The PanedWindow
does not allow a pane to be resized below its minimum size or beyond its
maximum size\&. Also, when the minimum size of a pane is equal to its maximum
size, no control sash is presented for that pane or
for the lowest pane\&.
.PP
The default \fBXmNinsertPosition\fP procedure for PanedWindow causes
all panes to appear first in the \fBXmNchildren\fP list and
all sashes to appear after the panes\&. For a pane child, it returns the
value of \fBXmNpositionIndex\fP if one has been specified for the
child\&. Otherwise, it returns the number of \fIpanes\fP in the
PanedWindow\&'s \fBXmNchildren\fP list\&. Other than the fact that all
sashes appear after all panes, the insertion order of sashes is unspecified\&.
This procedure also causes
nonsash widgets to be inserted after other nonsash children but before
any sashes\&.
The behavior of PanedWindow is undefined if \fBXmNinsertPosition\fP is set
to a procedure other than the default\&.
.PP
All panes and sashes in a PanedWindow must be tab groups\&. When a pane is
inserted as a child of the PanedWindow, if the pane\&'s
\fBXmNnavigationType\fP is not \fBXmEXCLUSIVE_TAB_GROUP\fP, PanedWindow
sets it to \fBXmSTICKY_TAB_GROUP\fP\&.
.SS "Descendants"
.PP
PanedWindow automatically creates for each paned window the
descendants shown in the
following table\&.
An application can use \fBXtName\fP and the child list information to
gain access to the named descendant\&.
In addition, a user or an application
can use the named descendant when specifying resource values\&.
.TS
tab() box;
l| l| l.
\fBNamed Descendant\fP\fBClass\fP\fBIdentity\fP
___
=
___
\fBSash\fP\fBsubclass of\fP \fBXmPrimitive\fPsash
___
\fBSeparator\fP\fBXmSeparatorGadget\fPdividing line between window panes
___
.TE
.SS "Classes"
.PP
PanedWindow inherits behavior and resources from the
\fBCore\fP, \fBComposite\fP, \fBConstraint\fP, and \fBXmManager\fP classes\&.
.PP
The class pointer is \fBxmPanedWindowWidgetClass\fP\&.
.PP
The class name is \fBXmPanedWindow\fP\&.
.SS "New Resources"
.PP
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 \fB\&.Xdefaults\fP file, remove the \fBXmN\fP or
\fBXmC\fP prefix and use the remaining letters\&. To specify one of the defined
values for a resource in a \fB\&.Xdefaults\fP file, remove the \fBXm\fP 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 \fBXtSetValues\fP (S),
retrieved by using \fBXtGetValues\fP (G), or is not applicable (N/A)\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmPanedWindow Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNmarginHeightXmCMarginHeightDimension3CSG
_____
XmNmarginWidthXmCMarginWidthDimension3CSG
_____
XmNorientationXmCOrientationunsigned charXmVERTICALCSG
_____
XmNrefigureModeXmCBooleanBooleanTrueCSG
_____
XmNsashHeightXmCSashHeightDimension10CSG
_____
XmNsashIndentXmCSashIndentPosition-10CSG
_____
XmNsashShadowThicknessXmCShadowThicknessDimensiondynamicCSG
_____
XmNsashWidthXmCSashWidthDimension10CSG
_____
XmNseparatorOnXmCSeparatorOnBooleanTrueCSG
_____
XmNspacingXmCSpacingDimension8CSG
_____
.TE
.IP "\fBXmNmarginHeight\fP" 10
Specifies the distance between the top and bottom edges of the PanedWindow
and its children\&.
.IP "\fBXmNmarginWidth\fP" 10
Specifies the distance between the left and right edges of the PanedWindow
and its children\&.
.IP "\fBXmNorientation\fP" 10
Specifies the layout as either vertical (with the \fBXmVERTICAL\fP
value) or horizontal (with the \fBXmHORIZONTAL\fP value)\&. In the
vertical layout, the children are laid out in a vertically tiled
format\&. In the horizontal layout, the children are laid out in a
horizontal layout, with the sash moveable along the horizontal axis\&.
.IP "\fBXmNrefigureMode\fP" 10
Determines whether the panes\&' positions are recomputed and repositioned
when programmatic changes are being made to the PanedWindow\&.
Setting this resource to True resets the children to their appropriate
positions\&.
.IP "\fBXmNsashHeight\fP" 10
Specifies the height of the sash\&.
.IP "\fBXmNsashIndent\fP" 10
Specifies the horizontal placement of the sash along each pane\&. A positive
value causes the sash to be offset from the near (left) side of the PanedWindow,
and a negative value causes the sash to be offset from the far (right)
side of the PanedWindow\&. If the offset is greater than the width of the
PanedWindow minus the width of the sash, the sash is placed flush
against the near side of the PanedWindow\&.
.IP "" 10
Whether the placement actually corresponds to the left or right side of
the PanedWindow
depends on the \fBXmNlayoutDirection\fP
resource of the widget\&.
.IP "\fBXmNsashShadowThickness\fP" 10
Specifies the thickness of the shadows of the sashes\&.
.IP "\fBXmNsashWidth\fP" 10
Specifies the width of the sash\&.
.IP "\fBXmNseparatorOn\fP" 10
Determines whether a separator is created between each of the panes\&.
Setting this resource to True creates a Separator at the
midpoint between each of the panes\&.
.IP "\fBXmNspacing\fP" 10
Specifies the distance between each child pane\&.
.IP "" 10
.TS
tab() box;
c s s s s
l| l| l| l| l.
T{
\fBXmPanedWindow Constraint Resource Set\fP
T}
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNallowResizeXmCBooleanBooleanFalseCSG
_____
XmNpaneMaximumXmCPaneMaximumDimension1000CSG
_____
XmNpaneMinimumXmCPaneMinimumDimension1CSG
_____
XmNpositionIndexXmCPositionIndexshortXmLAST_POSITIONCSG
_____
XmNskipAdjustXmCBooleanBooleanFalseCSG
_____
.TE
.IP "\fBXmNallowResize\fP" 10
Allows an application to specify whether the PanedWindow
should allow a pane to request to be resized\&. This flag has an
effect only after the PanedWindow and its children have been realized\&.
If this flag is set to True, the PanedWindow tries to honor requests
to alter the height of the pane\&. If False, it always denies pane
requests to resize\&.
.IP "\fBXmNpaneMaximum\fP" 10
Allows an application to specify the maximum size to which a pane
may be resized\&. This value must be greater than the specified minimum\&.
.IP "\fBXmNpaneMinimum\fP" 10
Allows an application to specify the minimum size to which a pane
may be resized\&. This value must be greater than 0 (zero)\&.
.IP "\fBXmNpositionIndex\fP" 10
Specifies the position of the widget in its parent\&'s list of
children (the list of pane children, not including sashes)\&. The value
is an integer that is no less than 0 (zero) and no greater than
the number of children in the list at the time the value is
specified\&. A value of 0 means that the child is placed at the
beginning of the list\&. The value can also be specified as
\fBXmLAST_POSITION\fP (the default), which means that the child
is placed at the end of the list\&. Any other value is ignored\&.
\fBXtGetValues\fP returns the position of the widget in its parent\&'s
child list at the time of the call to \fBXtGetValues\fP\&.
.IP "" 10
When a widget is inserted into its parent\&'s child list, the positions
of any existing children that are greater than or equal to the
specified widget\&'s \fBXmNpositionIndex\fP are increased by 1\&.
The effect of a call to \fBXtSetValues\fP for \fBXmNpositionIndex\fP
is to remove the specified widget from its parent\&'s child list, decrease
by one the positions of any existing children that are greater than
the specified widget\&'s former position in the list, and then insert
the specified widget into its parent\&'s child list as described in the
preceding sentence\&.
.IP "\fBXmNskipAdjust\fP" 10
When set to True, this Boolean resource allows an application to specify
that the PanedWindow should not automatically resize this pane\&.
.SS "Inherited Resources"
.PP
PanedWindow inherits behavior and resources from the
superclasses described in the following tables\&.
For a complete description of each resource, refer to the
reference page for that superclass\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmManager Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG
_____
XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNforegroundXmCForegroundPixeldynamicCSG
_____
XmNhelpCallbackXmCCallbackXtCallbackListNULLC
_____
XmNhighlightColorXmCHighlightColorPixeldynamicCSG
_____
XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG
_____
XmNinitialFocusXmCInitialFocusWidgetNULLCSG
_____
XmNlayoutDirectionXmCLayoutDirectionXmDirectiondynamicCG
_____
XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmTAB_GROUPCSG
_____
XmNpopupHandlerCallbackXmCCallbackXtCallbackListNULLC
_____
XmNshadowThicknessXmCShadowThicknessDimension2CSG
_____
XmNstringDirectionXmCStringDirectionXmStringDirectiondynamicCG
_____
XmNtopShadowColorXmCTopShadowColorPixeldynamicCSG
_____
XmNtopShadowPixmapXmCTopShadowPixmapPixmapdynamicCSG
_____
XmNtraversalOnXmCTraversalOnBooleanTrueCSG
_____
XmNunitTypeXmCUnitTypeunsigned chardynamicCSG
_____
XmNuserDataXmCUserDataXtPointerNULLCSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBCore Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicCSG
_____
XmNancestorSensitiveXmCSensitiveBooleandynamicG
_____
XmNbackgroundXmCBackgroundPixeldynamicCSG
_____
XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderColorXmCBorderColorPixelXtDefaultForegroundCSG
_____
XmNborderPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderWidthXmCBorderWidthDimension0CSG
_____
XmNcolormapXmCColormapColormapdynamicCG
_____
XmNdepthXmCDepthintdynamicCG
_____
XmNdestroyCallbackXmCCallbackXtCallbackListNULLC
_____
XmNheightXmCHeightDimensiondynamicCSG
_____
XmNinitialResourcesPersistentXmCInitialResourcesPersistentBooleanTrueC
_____
XmNmappedWhenManagedXmCMappedWhenManagedBooleanTrueCSG
_____
XmNscreenXmCScreenScreen *dynamicCG
_____
XmNsensitiveXmCSensitiveBooleanTrueCSG
_____
XmNtranslationsXmCTranslationsXtTranslationsdynamicCSG
_____
XmNwidthXmCWidthDimensiondynamicCSG
_____
XmNxXmCPositionPosition0CSG
_____
XmNyXmCPositionPosition0CSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBComposite Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNchildrenXmCReadOnlyWidgetListNULLG
_____
XmNinsertPositionXmCInsertPositionXtOrderProcdefault procedureCSG
_____
XmNnumChildrenXmCReadOnlyCardinal0G
_____
.TE
.SS "Translations"
.PP
\fBXmPanedWindow\fP inherits translations from \fBXmManager\fP\&.
.PP
The translations for sashes within the PanedWindow are
described in the following table\&.
.PP
The following key names are listed in the
X standard key event translation table syntax\&.
This format is the one used by Motif to
specify the widget actions corresponding to a given key\&.
A brief overview of the format is provided under
\fBVirtualBindings\fP(3)\&.
For a complete description of the format, please refer to the
X Toolkit Instrinsics Documentation\&.
.IP "\fB\(apc \(aps \(apm \(apa\fP \fB<Btn1Down>\fP:" 10
SashAction(\fBStart\fP)
.IP "\fB\(apc \(aps \(apm \(apa\fP \fB<Btn1Motion>\fP:" 10
SashAction(\fBMove\fP)
.IP "\fB\(apc \(aps \(apm \(apa\fP \fB<Btn1Up>\fP:" 10
SashAction(\fBCommit\fP)
.IP "\fB\(apc \(aps \(apm \(apa\fP \fB<Btn2Down>\fP:" 10
SashAction(\fBStart\fP)
.IP "\fB\(apc \(aps \(apm \(apa\fP \fB<Btn2Motion>\fP:" 10
SashAction(\fBMove\fP)
.IP "\fB\(apc \(aps \(apm \(apa\fP \fB<Btn2Up>\fP:" 10
SashAction(\fBCommit\fP)
.IP "\fB:\fP\fB<Key>\fP\fB<osfActivate>\fP:" 10
PrimitiveParentActivate()
.IP "\fB:\fP\fB<Key>\fP\fB<osfCancel>\fP:" 10
PrimitiveParentCancel()
.IP "\fB:\fP\fB<Key>\fP\fB<osfHelp>\fP:" 10
Help()
.IP "\fB:c\fP \fB<Key>\fP\fB<osfUp>\fP:" 10
SashAction(\fBKey,LargeIncr,Up\fP)
.IP "\fB:\fP\fB<Key>\fP\fB<osfUp>\fP:" 10
SashAction(\fBKey,DefaultIncr,Up\fP)
.IP "\fB:c\fP \fB<Key>\fP\fB<osfRight>\fP:" 10
SashAction(\fBKey,LargeIncr,Right\fP)
.IP "\fB:\fP\fB<Key>\fP\fB<osfRight>\fP:" 10
SashAction(\fBKey,DefaultIncr,Right\fP)
.IP "\fB:c\fP \fB<Key>\fP\fB<osfDown>\fP:" 10
SashAction(\fBKey,LargeIncr,Down\fP)
.IP "\fB:\fP\fB<Key>\fP\fB<osfDown>\fP:" 10
SashAction(\fBKey,DefaultIncr,Down\fP)
.IP "\fB:c\fP \fB<Key>\fP\fB<osfLeft>\fP:" 10
SashAction(\fBKey,LargeIncr,Left\fP)
.IP "\fB:\fP\fB<Key>\fP\fB<osfLeft>\fP:" 10
SashAction(\fBKey,DefaultIncr,Left\fP)
.IP "\fB\(aps \(apm \(apa\fP \fB<Key>\fP\fBReturn\fP:" 10
PrimitiveParentActivate()
.IP "\fBs \(apm \(apa\fP \fB<Key>\fP\fBTab\fP:" 10
PrevTabGroup()
.IP "\fB\(apm \(apa\fP \fB<Key>\fP\fBTab\fP:" 10
NextTabGroup()
.SS "Action Routines"
.PP
The \fBXmPanedWindow\fP action routines are
.IP "Help():" 10
Calls the callbacks for \fBXmNhelpCallback\fP if any exist\&. If there are no help
callbacks for this widget, this action calls the help callbacks
for the nearest ancestor that has them\&.
.IP "NextTabGroup():" 10
Moves the keyboard focus to the next tab group\&.
By default, each pane and sash is a tab group\&.
.IP "PrevTabGroup():" 10
Moves the keyboard focus to the previous tab group\&.
By default, each pane and sash is a tab group\&.
.IP "SashAction(\fIaction\fP\fB)\fP\ or\ SashAction(\fBKey,\fP\fIincrement\fP\fB,\fP\fIdirection\fP\fB)\fP:" 10
The \fBStart\fP action activates the interactive placement of the pane\&'s borders\&.
The \fBMove\fP action causes the sash to track the position of the pointer\&.
If one of the panes reaches its minimum or maximum size, adjustment
continues with the next adjustable pane\&.
The \fBCommit\fP action ends sash motion\&.
.IP "" 10
When sash action is caused by a keyboard event, the sash with the keyboard
focus is moved according to the \fIincrement\fP and \fIdirection\fP
specified\&. \fBDefaultIncr\fP adjusts the sash by one line\&.
\fBLargeIncr\fP adjusts the sash by one view region\&. The \fIdirection\fP
is specified as either
\fBUp\fP, \fBDown\fP, \fBLeft\fP, or \fBRight\fP\&.
.IP "" 10
Note that the SashAction action routine is not a direct action routine
of the \fBXmPanedWindow,\fP but rather an action of the Sash control created
by the \fBXmPanedWindow\fP\&.
.SS "Additional Behavior"
.PP
This widget has the following additional behavior:
.IP "\fB<FocusIn>\fP:" 10
Moves the keyboard focus to the sash and highlights it
.IP "\fB<FocusOut>\fP:" 10
Unsets the keyboard focus in the sash and unhighlights it
.SS "Virtual Bindings"
.PP
The bindings for virtual keys are vendor specific\&.
For information about bindings for virtual buttons and keys, see \fBVirtualBindings\fP(3)\&.
.SH "RELATED"
.PP
\fBComposite\fP(3), \fBConstraint\fP(3),
\fBCore\fP(3),
\fBXmCreatePanedWindow\fP(3),
\fBXmManager\fP(3),
\fBXmVaCreatePanedWindow\fP(3), and
\fBXmVaCreateManagedPanedWindow\fP(3)\&.