DOKK / manpages / debian 12 / s3d-doc / s3dw_focus.3.en
S3DW_FOCUS(3) s3d Manual S3DW_FOCUS(3)

s3dw_focus - give widget focus

#include <s3dw.h>

void s3dw_focus(s3dw_widget *focus);

Gives focus to the widget, relative to its parent. That means you can focus a surface, and each surface can focus one of its element, e.g. an input field. Should be casted with S3DWIDGET().

Simon Wunderlich

Author of s3d
s3d