MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / recompui_create_button

Function recompui_create_button

src/ui/ui_api.cpp:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void recompui_create_button(uint8_t* rdram, recomp_context* ctx) {
120 ContextId ui_context = get_context(rdram, ctx);
121 Element* parent = arg_element<1>(rdram, ctx, ui_context);
122 std::string text = _arg_string<2>(rdram, ctx);
123 uint32_t style = _arg<3, uint32_t>(rdram, ctx);
124
125 Button* ret = ui_context.create_element<Button>(parent, text, static_cast<ButtonStyle>(style));
126 return_resource(ctx, ret->get_resource_id());
127}
128
129void recompui_create_label(uint8_t* rdram, recomp_context* ctx) {
130 ContextId ui_context = get_context(rdram, ctx);

Callers

nothing calls this directly

Calls 3

get_contextFunction · 0.85
return_resourceFunction · 0.85
get_resource_idMethod · 0.80

Tested by

no test coverage detected