DOKK / manpages / debian 11 / s3d-doc / s3dw_button_new.3.en
S3DW_BUTTON_NEW(3) s3d Manual S3DW_BUTTON_NEW(3)

s3dw_button_new - create a new button in the surface

#include <s3dw.h>

s3dw_button *s3dw_button_new(const s3dw_surface *surface, const char *text, float posx, float posy);

Creates a new button on the surface, with "text" written on it and the upper left corner at (posx,posy) on the surface.

See s3dw_button for information about callbacks which may be defined.

Simon Wunderlich

Author of s3d
s3d