File: mframe.3m17n

package info (click to toggle)
m17n-docs 1.6.2-2
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 22,492 kB
  • ctags: 1,495
  • sloc: sh: 1,032; makefile: 406; ansic: 206; perl: 108
file content (283 lines) | stat: -rw-r--r-- 5,432 bytes parent folder | download | duplicates (3)
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
.\" Copyright (C) 2001 Information-technology Promotion Agency (IPA)
.\" Copyright (C) 2001-2011
.\"   National Institute of Advanced Industrial Science and Technology (AIST)
.\" This file is part of the m17n library documentation.
.\" Permission is granted to copy, distribute and/or modify this document
.\" under the terms of the GNU Free Documentation License, Version 1.2 or
.\" any later version published by the Free Software Foundation; with no
.\" Invariant Section, no Front-Cover Texts,
.\" and no Back-Cover Texts.  A copy of the license is included in the
.\" appendix entitled "GNU Free Documentation License".
.TH "mframe" 3m17n "12 Jan 2011" "Version 1.6.2" "The m17n Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
mframe \- Create a new frame. 


.SH SYNOPSIS
\fBMFrame\fP*
\fBmframe\fP (\fBMPlist\fP *
\fIplist\fP)


.SH DESCRIPTION
Create a new frame. The
.ft B
mframe()
.ft R
function creates a new frame with parameters listed in
.ft B
plist
.ft R
which may be
.ft C
NULL\fP.
.ft R
.PP
The recognized keys in
.ft B
plist
.ft R
are window system dependent.
.PP
The following key is always recognized.
.PP
.PD 0
.IP "\(bu" 2
\fBMdevice\fP,
.ft R
the value must be one of
.ft B
Mx\fP,
.ft R
.ft B
Mgd\fP,
.ft R
and
.ft B
Mnil\fP.
.ft R
.PP
If the value is
.ft B
Mx\fP,
.ft R
the frame is for X Window System. The argument
.ft B
MDrawWindow
.ft R
specified together with the frame must be of type
.ft C
Window\fP.
.ft R
The frame is both readable and writable, thus all GUI functions can be used.
.PP
If the value is
.ft B
Mgd\fP,
.ft R
the frame is for an image object of GD library. The argument
.ft B
MDrawWindow
.ft R
specified together with the frame must be of type
.ft C
gdImagePtr\fP.
.ft R
The frame is writable only, thus functions minput_XXX can't be used for the frame.
.PP
If the value is
.ft B
Mnil\fP,
.ft R
the frame is for a null device. The frame is not writable nor readable, thus functions mdraw_XXX that require the argument
.ft B
MDrawWindow
.ft R
and functions minput_XXX can't be used for the frame.
.PP

.IP "\(bu" 2
\fBMface\fP,
.ft R
the value must be a pointer to
.ft B
MFace\fP.
.ft R
.PP
The value is used as the default face of the frame.
.PP

.PP
.PP
In addition, if the value of the key
.ft B
Mdevice
.ft R
is
.ft B
Mx\fP,
.ft R
the following keys are recognized. They are to specify the root window and the depth of drawables that can be used with the frame.
.PP
.PD 0
.IP "\(bu" 2
\fBMdrawable\fP,
.ft R
the value type must be
.ft C
Drawable\fP.
.ft R
.PP
A parameter of key
.ft B
Mdisplay
.ft R
must also be specified. The created frame can be used for drawables whose root window and depth are the same as those of the specified drawable on the specified display.
.PP
When this parameter is specified, the parameter of key
.ft B
Mscreen
.ft R
is ignored.
.PP

.IP "\(bu" 2
\fBMwidget\fP,
.ft R
the value type must be
.ft C
Widget\fP.
.ft R
.PP
The created frame can be used for drawables whose root window and depth are the same as those of the specified widget.
.PP
If a parameter of key
.ft B
Mface
.ft R
is not specified, the default face is created from the resources of the widget.
.PP
When this parameter is specified, the parameters of key
.ft B
Mdisplay\fP,
.ft R
.ft B
Mscreen\fP,
.ft R
.ft B
Mdrawable\fP,
.ft R
.ft B
Mdepth
.ft R
are ignored.
.PP

.IP "\(bu" 2
\fBMdepth\fP,
.ft R
the value type must be
.ft C
unsigned\fP.
.ft R
.PP
The created frame can be used for drawables of the specified depth.
.PP

.IP "\(bu" 2
\fBMscreen\fP,
.ft R
the value type must be
.ft C
(Screen *)\fP.
.ft R
.PP
The created frame can be used for drawables whose root window is the same as the root window of the specified screen, and depth is the same at the default depth of the screen.
.PP
When this parameter is specified, parameter of key
.ft B
Mdisplay
.ft R
is ignored.
.PP

.IP "\(bu" 2
\fBMdisplay\fP,
.ft R
the value type must be
.ft C
(Display *)\fP.
.ft R
.PP
The created frame can be used for drawables whose root window is the same as the root window for the default screen of the display, and depth is the same as the default depth of the screen.
.PP

.IP "\(bu" 2
\fBMcolormap\fP,
.ft R
the value type must be
.ft C
(Colormap)\fP.
.ft R
.PP
The created frame uses the specified colormap.
.PP

.IP "\(bu" 2
\fBMfont\fP,
.ft R
the value must be
.ft B
Mx\fP,
.ft R
.ft B
Mfreetype\fP,
.ft R
or
.ft B
Mxft\fP.
.ft R
.PP
The created frame uses the specified font backend. The value
.ft B
Mx
.ft R
instructs to use X core fonts,
.ft B
Mfreetype
.ft R
to use local fonts supported by FreeType fonts, and
.ft B
Mxft
.ft R
to use local fonts via Xft library. You can specify this parameter more than once with different values if you want to use multiple font backends. This is ignored if the specified font backend is not supported on the device.
.PP
When this parameter is not specified, all font backend supported on the device are used.
.PP

.PP
.PP
.SH RETURN VALUE
.PP
.RS 4
If the operation was successful,
.ft B
mframe()
.ft R
returns a pointer to a newly created frame. Otherwise, it returns
.ft C
NULL\fP.
.ft R
.RE
.PP

.SH COPYRIGHT
Copyright (C) 2001 Information\-technology Promotion Agency (IPA)
.br
Copyright (C) 2001\-2011 National Institute of Advanced Industrial Science and Technology (AIST)
.br
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License 
<http://www.gnu.org/licenses/fdl.html>.