_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 types3dw_widget. She's the base, the foundation, the main character π«Άtextβ achar *. Literally the text. Pointing at stuff. β¨oid_textβ auint32_t. It's an oid, and it's for the text, iykyk πonclickβ of types3dw_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 β¨
π¦ where this page comes from
- debian bookworm: s3d-doc 0.2.2.1-5 Β· GPL-2.0-or-later
- debian trixie: s3d-doc 0.2.2.1-7 Β· GPL-2.0-or-later
- ubuntu jammy: s3d-doc 0.2.2.1-3build1 Β· GPL-2.0-or-later
- ubuntu noble: s3d-doc 0.2.2.1-6build3 Β· GPL-2.0-or-later
- ubuntu questing: s3d-doc 0.2.2.1-7build1
- ubuntu resolute: s3d-doc 0.2.2.1-7build3 Β· GPL-2.0-or-later
- ubuntu stonking: s3d-doc 0.2.3-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms