canvas::zoom(3tk)
β¨ canvas::zoom β the zoomies manual β¨
okay bestie, buckle up, because this is the zoom control for canvas::sqmap and it's literally the little widget that lets a human being decide how β¨zoomed inβ¨ they wanna be on a map. it's giving "map girl summer" π
πΈ 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?
so you're gonna need Tcl 8.4, Tk 8.4, snit, and uevent::onidle on deck before this diva will even walk onstage, ok? and the package itself is canvas::zoom, version 0.2.1 if you're being specific about it π«Ά
π DESCRIPTION π
this package hands you a whole widget whose entire job is letting the person looking at a map display control the zoom level. that's it. that's the gig. and it ate. π
π API π
::canvas::zoom pathName ?options?
this creates the zoom control widget at pathName and configures it for you. the methods and options this shiny new widget supports are all down below, keep reading bestie, don't scroll too fast π
and yes, the result of the command is pathName itself. it hands you back its own name, which is honestly main character energy.
β¨ OPTIONS β¨
-orientβ this one's eitherverticalorhorizontal, and it decides which way the widget's major axis points. the default?vertical. so if you don't say anything, it's standing up tall like a little zoom tower ποΈ-levelsβ give it a non-negative integer, and it's the number of zoom levels you want to support. non-negative, bestie, please, don't be out here being negative π«-variableβ here you name a global or namespaced variable and the widget gets β¨bondedβ¨ to it. change the zoom level in the widget and it gets propagated out to that variable; change the variable and it gets imported back into the widget. it's a two-way situationship, fr fr π-commandβ this is a command prefix, a callback, and it gets invoked whenever the zoom level changes. it's called with two extra arguments, in this exact order: first the zoom control widget, then the new zoom level. widget first, level second, no cap. π£
π METHODS π
ngl there are no methods beyond the standard ones. configure, cget, etc. that's the whole list. iconic minimalist behaviour honestly π§
π BUGS, IDEAS, FEEDBACK π
this document, and the package it describes, will undoubtedly contain bugs and other problems β yes, even the docs, even the pretty ones π. please report them in the category canvas of the Tklib Trackers:
http://core.tcl.tk/tklib/reportlist
and if you've got ideas for enhancements for either the package and/or the documentation, report those too! we want them! π«ΆπΈ
β KEYWORDS β
zoom
and that's the whole page, bestie β this one came to you from tklib, version 0.2.1, filed under canvas::zoom(3tk) πβ¨ go forth and zoom responsibly ππ
π¦ where this page comes from
- debian trixie: tklib 0.9-1
- ubuntu questing: tklib 0.9-1
- ubuntu resolute: tklib 0.9-1build1
- ubuntu stonking: tklib 0.9-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms