Imported upstream version 1.5
[manpages-zh.git] / src / mann / cursors.n
blob23c0056ef6f0da40bb24a8579c9efe099b49cb56
1 '\"
2 '\" Copyright (c) 1998-2000 by Scriptics Corporation.
3 '\" All rights reserved.
4 '\"
5 '\" RCS: @(#) $Id: cursors.n,v 1.2 2003/11/24 05:09:59 bbbush Exp $
6 '\"
7 '\"
8 '\" The definitions below are for supplemental macros used in Tcl/Tk
9 '\" manual entries.
10 '\"
11 '\" .AP type name in/out ?indent?
12 '\" Start paragraph describing an argument to a library procedure.
13 '\" type is type of argument (int, etc.), in/out is either "in", "out",
14 '\" or "in/out" to describe whether procedure reads or modifies arg,
15 '\" and indent is equivalent to second arg of .IP (shouldn't ever be
16 '\" needed; use .AS below instead)
17 '\"
18 '\" .AS ?type? ?name?
19 '\" Give maximum sizes of arguments for setting tab stops. Type and
20 '\" name are examples of largest possible arguments that will be passed
21 '\" to .AP later. If args are omitted, default tab stops are used.
22 '\"
23 '\" .BS
24 '\" Start box enclosure. From here until next .BE, everything will be
25 '\" enclosed in one large box.
26 '\"
27 '\" .BE
28 '\" End of box enclosure.
29 '\"
30 '\" .CS
31 '\" Begin code excerpt.
32 '\"
33 '\" .CE
34 '\" End code excerpt.
35 '\"
36 '\" .VS ?version? ?br?
37 '\" Begin vertical sidebar, for use in marking newly-changed parts
38 '\" of man pages. The first argument is ignored and used for recording
39 '\" the version when the .VS was added, so that the sidebars can be
40 '\" found and removed when they reach a certain age. If another argument
41 '\" is present, then a line break is forced before starting the sidebar.
42 '\"
43 '\" .VE
44 '\" End of vertical sidebar.
45 '\"
46 '\" .DS
47 '\" Begin an indented unfilled display.
48 '\"
49 '\" .DE
50 '\" End of indented unfilled display.
51 '\"
52 '\" .SO
53 '\" Start of list of standard options for a Tk widget. The
54 '\" options follow on successive lines, in four columns separated
55 '\" by tabs.
56 '\"
57 '\" .SE
58 '\" End of list of standard options for a Tk widget.
59 '\"
60 '\" .OP cmdName dbName dbClass
61 '\" Start of description of a specific option. cmdName gives the
62 '\" option's name as specified in the class command, dbName gives
63 '\" the option's name in the option database, and dbClass gives
64 '\" the option's class in the option database.
65 '\"
66 '\" .UL arg1 arg2
67 '\" Print arg1 underlined, then print arg2 normally.
68 '\"
69 '\" RCS: @(#) $Id: cursors.n,v 1.2 2003/11/24 05:09:59 bbbush Exp $
70 '\"
71 '\" # Set up traps and other miscellaneous stuff for Tcl/Tk man pages.
72 .if t .wh -1.3i ^B
73 .nr ^l \n(.l
74 .ad b
75 '\" # Start an argument description
76 .de AP
77 .ie !"\\$4"" .TP \\$4
78 .el \{\
79 . ie !"\\$2"" .TP \\n()Cu
80 . el .TP 15
81 .\}
82 .ta \\n()Au \\n()Bu
83 .ie !"\\$3"" \{\
84 \&\\$1 \\fI\\$2\\fP (\\$3)
85 .\".b
86 .\}
87 .el \{\
88 .br
89 .ie !"\\$2"" \{\
90 \&\\$1 \\fI\\$2\\fP
91 .\}
92 .el \{\
93 \&\\fI\\$1\\fP
94 .\}
95 .\}
97 '\" # define tabbing values for .AP
98 .de AS
99 .nr )A 10n
100 .if !"\\$1"" .nr )A \\w'\\$1'u+3n
101 .nr )B \\n()Au+15n
103 .if !"\\$2"" .nr )B \\w'\\$2'u+\\n()Au+3n
104 .nr )C \\n()Bu+\\w'(in/out)'u+2n
106 .AS Tcl_Interp Tcl_CreateInterp in/out
107 '\" # BS - start boxed text
108 '\" # ^y = starting y location
109 '\" # ^b = 1
110 .de BS
112 .mk ^y
113 .nr ^b 1u
114 .if n .nf
115 .if n .ti 0
116 .if n \l'\\n(.lu\(ul'
117 .if n .fi
119 '\" # BE - end boxed text (draw box now)
120 .de BE
122 .ti 0
123 .mk ^t
124 .ie n \l'\\n(^lu\(ul'
125 .el \{\
126 .\" Draw four-sided box normally, but don't draw top of
127 .\" box if the box started on an earlier page.
128 .ie !\\n(^b-1 \{\
129 \h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
131 .el \}\
132 \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
137 .nr ^b 0
139 '\" # VS - start vertical sidebar
140 '\" # ^Y = starting y location
141 '\" # ^v = 1 (for troff; for nroff this doesn't matter)
142 .de VS
143 .if !"\\$2"" .br
144 .mk ^Y
145 .ie n 'mc \s12\(br\s0
146 .el .nr ^v 1u
148 '\" # VE - end of vertical sidebar
149 .de VE
150 .ie n 'mc
151 .el \{\
152 .ev 2
154 .ti 0
155 .mk ^t
156 \h'|\\n(^lu+3n'\L'|\\n(^Yu-1v\(bv'\v'\\n(^tu+1v-\\n(^Yu'\h'-|\\n(^lu+3n'
157 .sp -1
161 .nr ^v 0
163 '\" # Special macro to handle page bottom: finish off current
164 '\" # box/sidebar if in box/sidebar mode, then invoked standard
165 '\" # page bottom macro.
166 .de ^B
167 .ev 2
168 'ti 0
170 .mk ^t
171 .if \\n(^b \{\
172 .\" Draw three-sided box if this is the box's first page,
173 .\" draw two sides but no top otherwise.
174 .ie !\\n(^b-1 \h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
175 .el \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
177 .if \\n(^v \{\
178 .nr ^x \\n(^tu+1v-\\n(^Yu
179 \kx\h'-\\nxu'\h'|\\n(^lu+3n'\ky\L'-\\n(^xu'\v'\\n(^xu'\h'|0u'\c
184 .if \\n(^b \{\
185 .mk ^y
186 .nr ^b 2
188 .if \\n(^v \{\
189 .mk ^Y
192 '\" # DS - begin display
193 .de DS
198 '\" # DE - end display
199 .de DE
204 '\" # SO - start of list of standard options
205 .de SO
206 .SH "STANDARD OPTIONS"
209 .ta 5.5c 11c
210 .ft B
212 '\" # SE - end of list of standard options
213 .de SE
215 .ft R
217 See the \\fBoptions\\fR manual entry for details on the standard options.
219 '\" # OP - start of full description for a single option
220 .de OP
223 .ta 4c
224 Command-Line Name: \\fB\\$1\\fR
225 Database Name: \\fB\\$2\\fR
226 Database Class: \\fB\\$3\\fR
230 '\" # CS - begin code excerpt
231 .de CS
234 .ta .25i .5i .75i 1i
236 '\" # CE - end code excerpt
237 .de CE
241 .de UL
242 \\$1\l'|0\(ul'\\$2
244 .TH cursors n 8.3 Tk "Tk Built-In Commands"
246 '\" Note: do not modify the .SH NAME line immediately below!
247 .SH NAME
248 cursors \- 在 Tk 可获得的鼠标光标
250 .SH "描述 DESCRIPTION"
252 \fB-cursor\fR 组件选项允许 Tk 编程者改变特定组件的鼠标光标。下面是在所有平台的 Tk 识别的光标名字:
254 X_cursor
255 arrow
256 based_arrow_down
257 based_arrow_up
258 boat
259 bogosity
260 bottom_left_corner
261 bottom_right_corner
262 bottom_side
263 bottom_tee
264 box_spiral
265 center_ptr
266 circle
267 clock
268 coffee_mug
269 cross
270 cross_reverse
271 crosshair
272 diamond_cross
274 dotbox
275 double_arrow
276 draft_large
277 draft_small
278 draped_box
279 exchange
280 fleur
281 gobbler
282 gumby
283 hand1
284 hand2
285 heart
286 icon
287 iron_cross
288 left_ptr
289 left_side
290 left_tee
291 leftbutton
292 ll_angle
293 lr_angle
295 middlebutton
296 mouse
297 pencil
298 pirate
299 plus
300 question_arrow
301 right_ptr
302 right_side
303 right_tee
304 rightbutton
305 rtl_logo
306 sailboat
307 sb_down_arrow
308 sb_h_double_arrow
309 sb_left_arrow
310 sb_right_arrow
311 sb_up_arrow
312 sb_v_double_arrow
313 shuttle
314 sizing
315 spider
316 spraycan
317 star
318 target
319 tcross
320 top_left_arrow
321 top_left_corner
322 top_right_corner
323 top_side
324 top_tee
325 trek
326 ul_angle
327 umbrella
328 ur_angle
329 watch
330 xterm
333 .SH "移植要点 PORTABILITY ISSUES"
336 \fBWindows\fR
337 在 Windows 系统上,把下列光标映射成本地光标:
340 arrow
341 center_ptr
342 crosshair
343 fleur
344 ibeam
345 icon
346 sb_h_double_arrow
347 sb_v_double_arrow
348 watch
349 xterm
351 还可获得下列补充的光标:
354 starting
355 size
356 size_ne_sw
357 size_ns
358 size_nw_se
359 size_we
360 uparrow
361 wait
363 可以指定 \fBno\fR 光标来使光标消失。
367 \fBMacintosh\fR
368 在 Macintosh 系统上,把下列光标映射成本地光标:
371 arrow
372 cross
373 crosshair
374 ibeam
375 plus
376 watch
377 xterm
379 还可获得下列补充的光标:
381 text
382 cross-hair
386 .SH "关键字 KEYWORDS"
387 cursor, option
388 .SH "[中文版维护人]"
389 .B 寒蝉退士
390 .SH "[中文版最新更新]"
391 .B 2001/06/21
392 .SH "《中国 Linux 论坛 man 手册页翻译计划》:"
393 .BI http://cmpp.linuxforum.net