S3DW_TEXTBOX_NEW(3)
β¨ S3DW_TEXTBOX_NEW β¨
okay bestie, this is page S3DW_TEXTBOX_NEW(3) from the s3d manual, and it's literally the glow-up tutorial for making a textbox. section 3, library call, you know the vibe π
πΈ NAME πΈ
s3dw_textbox_new β spawn a brand new textbox on the surface, no cap β¨
π SYNOPSIS π
#include <s3dw.h>
s3dw_textbox *s3dw_textbox_new(const s3dw_surface *surface,
const char *text, float posx, float posy,
float width, float height);
π¦ DESCRIPTION π¦
so basically? it creates a new textbox on the surface, with text written on it, and the upper left corner parked at (posx,posy) on that surface. that's the whole anchor point, bestie, top-left is the main character here π
and width and height? those define the size of the textbox β and like, including the scrollbars, because the scrollbars are rendered around the textfield. so don't come for me later being like "why is my box bigger than I asked", because the scrollbars were always part of the package deal π«Ά
heads up: go read s3dw_textbox for the info about the callbacks you can define. the lore is over there, fr fr π
π AUTHOR π
Simon Wunderlich β Author of s3d π
and that's the tea π this was page S3DW_TEXTBOX_NEW(3) out of the s3d manual (section 3, the library-call girlies π
). go forth and make textboxes, you're gonna slay π§β¨
π¦ 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