File: XmStringDraw.3

package info (click to toggle)
motif 2.3.8-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 36,432 kB
  • sloc: ansic: 452,643; sh: 4,611; makefile: 2,030; yacc: 1,604; lex: 352; cpp: 348
file content (121 lines) | stat: -rw-r--r-- 3,351 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
'\" t
...\" StrDrA.sgm /main/8 1996/09/08 21:04:18 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 "XmStringDraw" "library call"
.SH "NAME"
\fBXmStringDraw\fP \(em A compound string function that draws a compound string in an X window
.iX "XmStringDraw"
.iX "compound string functions" "XmStringDraw"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/Xm\&.h>
\fBvoid \fBXmStringDraw\fP\fR(
\fBDisplay \fB* d\fR\fR,
\fBWindow \fBw\fR\fR,
\fBXmRenderTable \fBrendertable\fR\fR,
\fBXmString \fBstring\fR\fR,
\fBGC \fBgc\fR\fR,
\fBPosition \fBx\fR\fR,
\fBPosition \fBy\fR\fR,
\fBDimension \fBwidth\fR\fR,
\fBunsigned char \fBalignment\fR\fR,
\fBunsigned char \fBlayout_direction\fR\fR,
\fBXRectangle \fB* clip\fR\fR);
.fi
.SH "DESCRIPTION"
.PP
\fBXmStringDraw\fP draws a compound string in an X Window\&.
If a compound string segment uses a
rendition
that
contains
a font set, the graphic context passed to this
routine will have the GC font member left in an undefined
state\&. The underlying \fBXmbStringDraw\fP function called
by this routine modifies the font ID field of the GC passed
into it and does not attempt to restore the font ID to the
incoming value\&. If the compound string segment is not drawn
using a font set, the graphic context must contain a valid font
member\&. Graphic contexts created by \fBXtGetGC\fP are not
valid for this routine; instead, use \fBXtAllocateGC\fP
to create a graphic context\&.
.IP "\fId\fP" 10
Specifies the display\&.
.IP "\fIw\fP" 10
Specifies the window\&.
.IP "\fIrendertable\fP" 10
Specifies the render table\&.
.IP "\fIstring\fP" 10
Specifies the string\&.
.IP "\fIgc\fP" 10
Specifies the graphics context to use\&.
.IP "\fIx\fP" 10
Specifies a coordinate of the rectangle that will contain the displayed
compound string\&.
.IP "\fIy\fP" 10
Specifies a coordinate of the rectangle that will contain the displayed
compound string\&.
.IP "\fIwidth\fP" 10
Specifies the width of the rectangle that will contain the
displayed compound string\&.
.IP "\fIalignment\fP" 10
Specifies how the string will be aligned within the specified rectangle\&.
It is either \fBXmALIGNMENT_BEGINNING\fP, \fBXmALIGNMENT_CENTER\fP, or
\fBXmALIGNMENT_END\fP\&.
.IP "\fIlayout_direction\fP" 10
Controls the direction in which the segments of the compound string will
be laid out\&. It also determines the meaning of the \fIalignment\fP parameter\&.
.IP "\fIclip\fP" 10
Allows the application to restrict the area into which the compound string
will be drawn\&.
If the value is NULL, clipping will be determined by the GC\&.
.SH "RELATED"
.PP
\fBXmStringCreate\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:31