_S3DW_INPUT(9)

πŸ’– _S3DW_INPUT(9) πŸ’–

okay bestie, pull up a chair, we're reading the _S3DW_INPUT page from the s3d manual, section 9 (that's the kernel/widget-dev section, iykyk). it's short, it's sweet, it's giving "tiny but mighty" πŸ’…


✨ NAME ✨

s3dw_input β€” the input field of an s3d widget πŸŽ€


🌸 SYNOPSIS 🌸

#include <s3dw.h>

πŸ¦‹ STRUCTURE MEMBERS πŸ¦‹

here's the whole struct, laid out exactly as the universe intended:

struct _s3dw_input {
     s3dw_widget widget;
     char *text;
     uint32_t oid_text;
     s3dw_callback onclick;
     s3dw_callback onedit;
}

like, five members. five little guys. all of them important. ✨


πŸ’œ DESCRIPTION πŸ’œ

so the input is literally an input field β€” a little box where a user may type things. that's the whole vibe. a box. typing. iconic.

  • onclick β€” this one reacts on click in the field πŸ‘† like, someone tapped it, and this callback is like "noted."
  • onedit β€” this one notifies you when someone writes in the field ✍️ so you always know when the typing happens, no cap.
bestie, do NOT sleep on onedit β€” it's literally the whole reason you can tell when the user is out here actually writing stuff. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich Author of s3d

the legend himself, author of s3d 🌈⭐


and that's the page, fr fr πŸ’– this was the _S3DW_INPUT(9) page out of the s3d manual (section 9, the good section), brought to you by the s3d crew. go forth and type in fields, bestie πŸŽ€πŸ¦‹πŸ’