canvas::zoom(n)

πŸ“¦
version 0.7 Β· 3 versions
, in alpine 3.24

πŸ’– 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 either vertical or horizontal, 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