_S3DW_BUTTON(9)

πŸŽ€ NAME πŸŽ€

s3dw_button β€” the button of the s3d widget, bestie πŸ’–

This one lives in the s3d manual, section 9. Yes it's a _S3DW_BUTTON(9) situation and yes we're gonna get into it. ✨


🌸 SYNOPSIS 🌸

#include <s3dw.h>

That's it. That's the whole vibe. Slap that include in and you're in business πŸ’…


πŸ¦‹ STRUCTURE MEMBERS πŸ¦‹

Okay so the whole thing is this lil struct, and honestly? She's giving minimalism. Iconic.

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

Let's do a lil walkthrough, one member at a time, no cap:

  • widget β€” of type s3dw_widget. She's the base, the foundation, the main character 🫢
  • text β€” a char *. Literally the text. Pointing at stuff. ✨
  • oid_text β€” a uint32_t. It's an oid, and it's for the text, iykyk πŸ’œ
  • onclick β€” of type s3dw_callback. The callback. For the click. The name is not being mysterious here 🌈

πŸ’– DESCRIPTION πŸ’–

Bestie. Listen. The buttons is just a button. Exactly like the one you're picturing in a 2D widget library β€” no plot twist, no secret lore, no hidden mode. She is a button and she knows it πŸ‘‘

And the one (1) thing she reacts to? Clicks. That's her whole personality. You click, she responds. You don't click, she's just vibing, existing, looking cute. No hover drama, no keypress chaos, no nothing. Just click energy only, periodt πŸ’…

Fr fr, if you came here looking for a button that does something on a keypress or a hover β€” she does not do that. Clicks. Only clicks. πŸŽ€

πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich β€” author of s3d. The literal architect. Respect the legend, she ate and left no crumbs 🌟


That's the whole page, babe! πŸ’– This was the s3d version of the _S3DW_BUTTON(9) manual β€” sourced straight from the s3d manual set, so go forth and click responsibly. Mwah πŸ«ΆπŸŒΈπŸ¦‹

✨ go build something cute ✨