canvas::zoom(n)
π canvas::zoom(n) β zoom control, filed under βVariations on a canvasβ π
okay so bestie, this is the canvas::zoom(n) page, and it's literally all about a zoom control widget for canvas::sqmap. no cap, the vibe is widgets and zoom levels. π
β¨ NAME β¨
canvas::zoom β Zoom control for canvas::sqmap
π SYNOPSIS π
package require Tcl 8.4
package require Tk 8.4
package require snit
package require uevent::onidle
package require canvas::zoom ?0.2.1?
::canvas::zoom pathName ?options?
π DESCRIPTION π
This package gives you a widget that lets the user of a map display control the zoom level. That's the whole plot, and it's iconic. πΊοΈβ¨
π» API π»
::canvas::zoom pathName ?options?
Creates the zoom control widget pathName and configures it. The methods and options supported by the new widget are described in the sections below. The result of the command is pathName. π«Ά
ποΈ OPTIONS β¨
-orientβ okay so this one takes eitherverticalorhorizontal, and it sets the orientation of the major axis of the widget. Default?vertical, bestie. π§-levelsβ this value is a non-negative integer. It says how many zoom levels to support. π’-variableβ this is the name of a global or namespaced variable 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. it's giving two-way bind realness. π-commandβ this is a command prefix. This callback gets 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. periodt. π
π οΈ METHODS π οΈ
The widget supports no methods beyond the standard ones (configure, cget, etc.). that's it, no secret extra methods hiding in the group chat. π
π BUGS, IDEAS, FEEDBACK π
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category canvas of the Tklib Trackers at http://core.tcl.tk/tklib/reportlist. Please also report any ideas for enhancements you may have for either package and/or documentation. we love feedback, fr fr. π«Ά
π KEYWORDS π
zoom
π okay bye bestie β this page is canvas::zoom(n) from tklib, version 0.2.1, and the footer has no date listed, so I'm not inventing one. π
π¦ where this page comes from
- alpine 3.24: tk-lib-doc 0.7-r0 Β· TCL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms