Tk_SetCaretPos(3)
π Tk_SetCaretPos(3) β bestie edition π
okay so this little icon is from the Tk Library Procedures section, and it is literally all about telling Tk where the display caret should live. no cap, it's a small page but every detail matters, so let's get into it π«Ά
β¨ NAME β¨
Tk_SetCaretPos β set the display caret location. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <tk.h>
int
Tk_SetCaretPos(tkwin, x, y, height)
π ARGUMENTS π
Tk_Window tkwin(in) β token for window. the window bestie in question πint x(in) β window-relative x coordinate. horizontal situation β¨int y(in) β window-relative y coordinate. vertical situation β¨int h(in) β height of the caret in the window. and yes, the synopsis calls itheightwhile the argument list calls ithβ both are right there, iykyk π
π¦ DESCRIPTION π¦
Tk_SetCaretPos sets the caret location for the display of the specified Tk_Window tkwin. that's the main character move. π
the caret is the per-display cursor location used for indicating global focus (e.g. to comply with Microsoft Accessibility guidelines), as well as for location of the over-the-spot XIM (X Input Methods) or Windows IME windows. literally all of that is the caret's job, and this function is how you set it. periodt. π
π KEYWORDS π
caret, cursor
later, bestie β this gem is from Tk Library Procedures, version Tk 8.4, and the date field on this page is lowkey not giving (none listed). mwah πβ¨
π¦ where this page comes from
- alpine 3.23: tk9-doc 9.0.3-r0 Β· TCL
- alpine 3.24: tk9-doc 9.0.3-r2 Β· TCL
- fedora 43: tk-devel 1:9.0.2-1.fc43 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 43: tk-devel 1:9.0.2-1.fc43 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 44: tk-devel 1:9.0.2-1.fc44 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 44: tk-devel 1:9.0.2-1.fc44 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- nixos 26.05: tk 9.0.3
- nixpkgs unstable: tk 9.1.0
- Copyright (c) 2002 ActiveState Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms