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: x is the column, y is 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!! πŸŽ€πŸ’–βœ¨