1XmTabList(library call) XmTabList(library call)
2
3
4
6 XmTabList — Data type for a tab list
7
9 #include <Xm/Xm.h>
10 XmTabList
11
13 XmTabList is the data type for a tab list. A tab list consists of tab
14 stop list entries (XmTabs). Whenever a tab component is encountered
15 while an XmString is being rendered, the origin of the next X draw
16 depends on the next XmTab. If a tab stop would cause text to overlap,
17 the x position for the segment is reset to follow immediately after the
18 end of the previous segment.
19
20 Tab lists are specified in resource files with the following syntax:
21
22 resource_spec: tab WHITESPACE [, WHITESPACE tab ]*
23
24 The resource value string consists of one or more tabs separated by
25 commas. Each tab identifies the value of the tab, the unit type, and
26 whether the offset is relative or absolute. For example:
27
28 tab := float [ WHITESPACE units ]
29 float := [ sign ] [[ DIGIT]*. ]DIGIT+
30 sign := +
31
32 where the presence or absence of sign indicates, respectively, a rela‐
33 tive offset or an absolute offset. Note that negative tab values are
34 not allowed. units indicates the unitType to use as described in the
35 XmConvertUnits reference page.
36
37 For example, the following specifies a tab list consisting of a one
38 inch absolute tab followed by a one inch relative tab:
39
40 *tabList: 1in, +1in
41
42 For resources of type, dimension, or position, you can specify units as
43 described in the XmNunitType resource of the XmGadget, XmManager, or
44 XmPrimitive reference page.
45
47 Refer to the Motif Programmer's Guide for more information about tabs
48 and tab lists. XmTabListCopy(3), XmTabListFree(3), XmTabListGetTab(3),
49 XmTabListInsertTabs(3), XmTabListRemoveTabs(3), XmTabListReplacePosi‐
50 tions(3), and XmTabListTabCount(3).
51
52
53
54 XmTabList(library call)