MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / ButtonWidget_SetConst

Function ButtonWidget_SetConst

src/Widgets.c:285–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void ButtonWidget_SetConst(struct ButtonWidget* w, const char* text, struct FontDesc* font) {
286 cc_string str = String_FromReadonly(text);
287 ButtonWidget_Set(w, &str, font);
288}
289
290
291/*########################################################################################################################*

Calls 2

String_FromReadonlyFunction · 0.85
ButtonWidget_SetFunction · 0.85

Tested by

no test coverage detected