cursor(n)

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

πŸ’… cursor(n) β€” Tk cursor routines, but make it make sense

okay bestie, so this is from the Tk cursor routines corner of the universe, and it's genuinely the whole cursor package manual. Let's go 🫢


✨ NAME ✨

cursor β€” the procedures that handle your CURSOR data. that's it, that's the vibe. πŸ–±οΈ


✨ SYNOPSIS ✨

package require Tk

package require cursor  ?0.3.1?

::cursor::propagate widget cursor

::cursor::restore widget ?cursor?

::cursor::display ?parent?

✨ DESCRIPTION ✨

so the cursor package literally just gives you commands to handle Tk cursors. no cap, that's the whole pitch. 🌸


✨ COMMANDS ✨

here's everything you get, one by one πŸ’–

  • ::cursor::propagate widget cursor β€” sets the cursor for the widget you named and every single one of its descendants to cursor. the whole family gets the same look, periodt. πŸ‘‘
  • ::cursor::restore widget ?cursor? β€” puts the original (or previously set) cursor back on the widget and all its descendants. and if you hand it a cursor, that one gets used on any widget that didn't already have a preset cursor β€” "preset" meaning set by an earlier call to ::cursor::propagate. so like, un-propagating, but cuter. πŸ¦‹
  • ::cursor::display ?parent? β€” pops up a dialog with a listbox holding all the cursor names. pick one and it shows up right there in the dialog. it's purely for viewing whatever cursors your platform actually has available β€” a little cursor window-shopping trip, iykyk ✨

πŸ› BUGS, IDEAS, FEEDBACK πŸ›

ngl, this document and the package it describes will undoubtedly contain bugs and other problems. it's giving "we know, we know" 😭. please report them in the category cursor of the Tklib Trackers at [http://core.tcl.tk/tklib/reportlist]. and if you've got ideas for enhancements for either the package and/or the documentation, send those too β€” bestie feedback is welcome πŸ’œ


✨ SEE ALSO ✨

Tk_GetCursor(3), cursors(n), options(n) β€” go read those too, they're iconic πŸ‘‘


✨ KEYWORDS ✨

cursor


Copyright (c) Jeffrey Hobbs <jeff@hobbs.org> πŸŽ€


heads up: this is the tklib version 0.3.1 manual page, dated cursor(n) β€” so if you ever need to cite it, that's the receipt πŸ’… stay slay, go set some cursors πŸ¦‹βœ¨
πŸ“¦ where this page comes from