File: canvas_zoom.man

package info (click to toggle)
tklib 0.5-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,136 kB
  • ctags: 1,658
  • sloc: tcl: 36,353; sh: 3,045; ansic: 792; makefile: 105; exp: 21; sed: 16
file content (68 lines) | stat: -rw-r--r-- 1,685 bytes parent folder | download | duplicates (2)
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
[comment {-*- tcl -*- doctools manpage}]
[manpage_begin canvas::zoom n 0.1]
[moddesc   {Variations on a canvas}]
[titledesc {Zoom control for canvas::sqmap}]
[require Tcl 8.4]
[require Tk 8.4]
[require canvas::zoom [opt 0.1]]
[description]

This package provides a widget to enable the user of a map display to
control the zoom level.

[section API]

[list_begin definitions]

[call [cmd ::canvas::zoom] [arg pathName] [opt options]]

Creates the zoom control widget [arg pathName] and configures it. The
methods and options supported by the new widget are described in the
following sections.

[nl]

The result of the command is [arg pathName].

[list_end]


[subsection Options]

[list_begin options]
[opt_def -orient]

The value for this option is either [const vertical], or
[const horizontal], specifying the orientation of the major axis of
the widget. The default is [const vertical].

[opt_def -levels]

The value for this option is a non-negative integer. It specifies the
number of zoom levels to support.

[opt_def -variable]

The value for this option is the name of a global or namespaced
variable which is connected with the widget. changes to the zoom level
made the widget are propagated to this variable, and in turn changes
to the variable are imported into the widget.

[opt_def -command]

This option specifies a command prefix. This callback will be invoked
whenever the zoom level is changed. It is called with two additional
arguments, the zoom control widget, and the new zoom level, in this
order.

[list_end]

[subsection Methods]

The widget supports no methods beyond the standard ([method configure],
[method cget], etc.).


[keywords zoom]
[manpage_end]