_S3DW_WIDGET(9)
π _S3DW_WIDGET(9) β the s3d manual, bestie edition π
okay so welcome to the s3d manual, and today's main character is s3dw_widget, the blueprint for literally every widget in the whole system. it's giving foundation. it's giving ancestor energy. let's get into it π¦
β¨ NAME β¨
s3dw_widget β s3d widget information
πΈ SYNOPSIS πΈ
#include <s3dw.h>
π STRUCTURE MEMBERS π
here's the whole squad, every single member, no one left out, no cap:
struct _s3dw_widget {
int type;
s3dw_widget *parent;
s3dw_style *style;
int nobj;
s3dw_widget **pobj;
int focus;
int flags;
float ax;
float ay;
float az;
float as;
float arx;
float ary;
float arz;
float width;
float height;
uint32_t oid;
void *ptr;
float x;
float y;
float z;
float s;
float rx;
float ry;
float rz;
}
like. look at her. 25 fields of pure widget lore. π
π DESCRIPTION π
so this right here is the most basic widget type, and she contains all the "general" widget information. think of her as the base layer of the whole outfit. π§
if you wanna move a widget, bestie, you'd change x, y, z, s and rx, ry, rz, and then call s3dw_moveit to turn your action into reality. yes literally, that's the move. manifest it, then call the function. β¨
and here's the iconic part: every other widget has this type as its first entry, so a simple typecast to s3dw_widget will hand you that widget's "general" information. for the typecast, you may use S3DWIDGET(). slay, inheritance, we love to see it. π«Ά
the pointer ptr lets you link to user-specific data structures. that comes in so handy when the widget gets called back by an event and your program has to figure out which data the user actually reacted to. like detective work but make it structs. π
π AUTHOR π
- Simon Wunderlich β Author of s3d
fr fr, that's the whole page, and every last detail stayed. don't @ me. π
okay bye bestie!! this was the s3d manual, source s3d, page _S3DW_WIDGET(9). mwah, see u in the next manpage π
π
π¦ 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