S3DW_INPUT_NEW(3)

πŸ’– S3DW_INPUT_NEW(3) β€” the s3d manual, but make it cute πŸ’–

okay bestie, gather round, because today we're manifesting an input box ✨ this is section 3 of the s3d manual and it's literally all about one little function that spawns a text input on your surface. slay.


✨ NAME ✨

s3dw_input_new β€” create a new input in the surface πŸŽ€


🌸 SYNOPSIS 🌸

#include <s3dw.h>

s3dw_input *s3dw_input_new(const s3dw_surface *surface, float width,
                           float posx, float posy);

like, that's it. that's the whole summoning ritual 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically? s3dw_input_new makes a brand-new input-box on the surface, and its input width is width. the upper left corner sits at (posx,posy) on the surface. positioning queen πŸ‘‘

the tea on the input-box itself: it's empty on creation. yes, a whole blank slate, main character energy fr. you can change it later with s3dw_input_change_text, and you can receive it back with s3dw_input_gettext. that's the little round trip, no cap πŸ’…

also!! go peek at s3dw_input for the info about callbacks which may be defined. the callbacks live over there, not here. iykyk πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich Author of s3d 🌈


and that's the whole page bestie, we ate and left no crumbs πŸ“ this was the s3d manual, section 3 (yes, S3DW_INPUT_NEW(3), the one and only), brought to you by the s3d source. go make something iconic πŸ’œ