S3DW_BUTTON_NEW(3)
π s3dw_button_new β bestie, let's make a button π
okay so this is S3DW_BUTTON_NEW(3), from the s3d manual, and it's genuinely one of my faves because it's SO straightforward. no cap. you want a button? boom. button. π
β¨ NAME β¨
s3dw_button_new β create a new button in the surface π
π¦ SYNOPSIS π¦
#include <s3dw.h>
s3dw_button *s3dw_button_new(const s3dw_surface *surface,
const char *text, float posx, float posy);
like. look at it. four args. iconic. πΈ
π DESCRIPTION π
So the way this works is: it creates a new button on the surface. that's the whole vibe.
The button gets "text" written on it β yes, literally that text, that's your label bestie β and its upper left corner sits at (posx,posy) on the surface. upper left. not center, not lower right, upper left. keep that in mind or your layout will be giving chaos. π
fr fr, if you wanna know about the callbacks you can define on this thing, go read s3dw_button. that's where the callback tea is. π«Ά
π AUTHOR π
Simon Wunderlich β Author of s3d β
and that's the whole page, bestie!! π go forth and make buttons, you're gonna eat. no notes.
sign-off time π β this little masterpiece lives in the s3d manual, and its page name is S3DW_BUTTON_NEW(3), mwah. π
β¨
π¦ 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