_S3DW_TEXTBOX(9)

πŸ’– NAME πŸ’–

s3dw_textbox β€” the textbox of s3d widget, bestie. it's giving "box full of text" and honestly? iconic.


✨ SYNOPSIS ✨

#include <s3dw.h>

like that's it, that's the whole vibe. just pull in the header and you're set 🫢


πŸŽ€ STRUCTURE MEMBERS πŸŽ€

okay so here's the whole glow-up of struct _s3dw_textbox, every single member, no cap:

struct _s3dw_textbox {
     s3dw_widget widget;
     s3dw_scrollbar *scroll_vertical;
     s3dw_scrollbar *scroll_horizontal;
     char *text;
     int n_lineoids;
     int *p_lineoids;
     int window_x;
     int window_y;
     s3dw_callback onclick;
}

she's got the base widget in there (every s3d widget starts with that, periodt), a scroll_vertical and a scroll_horizontal pointer for the scrollbars, the actual text itself as a char *, an n_lineoids count plus a p_lineoids int * pointer to the lineoids, the window_x and window_y positions, and an onclick s3dw_callback for when somebody clicks her. main character energy fr fr πŸ’…


🌸 DESCRIPTION 🌸

so a textbox shows some text, right? and it has scrollbars so you can scroll around and see all of it β€” the way that a textbox just holds your text and lets you vibe through it πŸ¦‹βœ¨

but listen: it can currently only react to a click event. that's it. one (1) event. don't come for her, she's doing her best πŸ’€


πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich β€” Author of s3d. king behavior, we stan 🫢🌈⭐


and that's the whole page, babe πŸ’œ this was _S3DW_TEXTBOX(9) from the s3d manual β€” mwah, go write something cute with it βœ¨πŸŽ€