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

Function ButtonWidget_Add

src/Widgets.c:267–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void ButtonWidget_Add(void* screen, struct ButtonWidget* w, int minWidth, Widget_LeftClick onClick) {
268 ButtonWidget_Init(w, minWidth, onClick);
269 AddWidget(screen, w);
270}
271
272void ButtonWidget_Set(struct ButtonWidget* w, const cc_string* text, struct FontDesc* font) {
273 struct DrawTextArgs args;

Callers 15

TouchCtrlsScreen_InitFunction · 0.85
TouchMoreScreen_InitFunction · 0.85
Menu_AddButtonsFunction · 0.85
AddPrimaryButtonFunction · 0.85
ListScreen_InitFunction · 0.85
PauseScreen_InitFunction · 0.85
EditHotkeyScreen_InitFunction · 0.85
GenLevelScreen_InitFunction · 0.85
ClassicGenScreen_InitFunction · 0.85
SaveLevelScreen_InitFunction · 0.85
BindsSourceScreen_InitFunction · 0.85

Calls 2

ButtonWidget_InitFunction · 0.85
AddWidgetFunction · 0.85

Tested by

no test coverage detected