_S3DW_LABEL(9)

πŸŽ€ s3dw_label πŸŽ€

okay bestie, welcome to s3dw_label, living its best life in the s3d Manual, section 9 ofc πŸ’… this one's short and sweet, so let's get into it ✨


✨ NAME ✨

s3dw_label β€” the label of an s3d widget 🏷️


🌸 SYNOPSIS 🌸

#include <s3dw.h>

like, that's it, that's the whole invite 🫢


πŸ¦‹ STRUCTURE MEMBERS πŸ¦‹

here's the whole squad, laid out exactly as it is, no cap:

struct _s3dw_label {
     s3dw_widget widget;
     char *text;
     s3dw_callback onclick;
}
  • widget β€” a s3dw_widget, the base widget energy, the main character it's built on πŸ‘‘
  • text β€” a char *, the actual text hanging out in there ✍️
  • onclick β€” a s3dw_callback, the lil function that fires when somebody clicks the field πŸ–±οΈ

πŸ’œ DESCRIPTION πŸ’œ

okay so, real talk: the label is an label-field where a user may type things πŸ“ like, yes, it's called a label, and yes, it's a field you can type into β€” the naming is giving chaos but we love her anyway πŸ™ˆ

and onclick? it reacts on click in the field. that's the vibe. click happens, callback goes brrr πŸ”₯


🌈 AUTHOR 🌈

Simon Wunderlich β€” Author of s3d 🫢 absolute icon, we stan


not me being obsessed with a struct that has exactly three members πŸ’€ short, iconic, does what it says on the tin ✨

kisses, bestie πŸ’– this was _S3DW_LABEL(9) from the s3d manual β€” stay slay, go click some fields πŸŽ€