std1.0.0-beta-7 SafeC docs

std :: gui::gui_draw

Function std::gui_text_width

#include <std/gui/gui_draw.h> source · definition

int gui_text_width(const &char text, int scale)

Width/height in pixels 'text' would occupy if drawn with the built-in font at the given scale, without actually drawing it — used by widgets to size themselves to their label/text content.