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

Function recompui_create_span

src/ui/ui_api.cpp:139–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void recompui_create_span(uint8_t* rdram, recomp_context* ctx) {
140 ContextId ui_context = get_context(rdram, ctx);
141 Element* parent = arg_element<1>(rdram, ctx, ui_context);
142 std::string text = _arg_string<2>(rdram, ctx);
143
144 Element* ret = ui_context.create_element<Span>(parent, text);
145 return_resource(ctx, ret->get_resource_id());
146}
147
148void recompui_create_textinput(uint8_t* rdram, recomp_context* ctx) {
149 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