S3DW_TEXTBOX_SCROLLT(3)
β¨ s3dw_textbox_scrollto β bestie's guide to scrollin' text β¨
okay so this is a page from the s3d Manual, section 3 (that's the library-calls girlies π
), and it's all about s3dw_textbox_scrollto. yes it's short. no it's not boring. it's iconic and it does exactly one thing. periodt.
πΈ NAME πΈ
<s3dw_textbox_scrollto> β scroll text to position π¦
like... the name literally tells you what it does. we love an honest function. no cap.
π SYNOPSIS π
#include <s3dw.h>
void s3dw_textbox_scrollto(s3dw_textbox *textbox, int x, int y);
okay so first thing: you gotta pull in the header, <s3dw.h>, or nothing works and you'll be sad π. then you call it with a s3dw_textbox *textbox, an int x, and an int y. it returns void btw β it gives you nothing back, it just does the thing β¨.
π DESCRIPTION π
Scrolls the text in the textbox so that the character in row y, column x is in the top left corner of the textbox.
that's it. that's the whole vibe. you point at a character β row y, column x β and the textbox scrolls itself so that little guy is sitting pretty in the top left corner π. top left. corner. character. slay.
ngl the coordinates are in that order:xis the column,yis the row. don't mix them up bestie, your scroll will end up somewhere real random π
π«Ά AUTHOR π«Ά
Simon Wunderlich Author of s3d
ty king, we appreciate you π
π that's the whole page π
and that's it!! short and sweet and honestly kind of a masterpiece. go forth and scroll your textboxes exactly where you want them π
this little cutie lives in the s3d Manual, and the footer down at the bottom just says s3d β no fancy version numbers, no date, just the name of the project holding it down at the bottom of the page. iconic behavior honestly. bye bestie!! ππβ¨
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms