S3DW_LABEL_NEW(3)

✨ S3DW_LABEL_NEW(3) ✨

okay bestie, welcome to the s3d Manual, section 3 (that's the library-calls girlies πŸ’…). today we're talking about s3dw_label_new, and honestly? it's giving "tiny function, huge main character energy". let's go 🫢


🌸 NAME 🌸

s3dw_label_new β€” create a new label in the surface ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <s3dw.h>

s3dw_label *s3dw_label_new(const s3dw_surface *surface,
                           const char *text, float posx, float posy);

πŸ’– DESCRIPTION πŸ’–

so like. this one literally just creates a new label on the surface, no cap. the label has "text" written on it πŸ“ and its upper left corner sits at (posx,posy) on the surface. that's it. that's the whole vibe. posx and posy are float, so yes, you can be as precise as you want, she supports it 🧚

also bestie, go look at s3dw_label for info about callbacks which may be defined β€” that's where the extra lore lives πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Simon Wunderlich β€” author of s3d 🫑 icon behaviour fr fr


k bye bestie, this was s3d, the s3d Manual, S3DW_LABEL_NEW(3) β€” same section, same energy, always πŸ’œπŸ’