MCPcopy Create free account
hub / github.com/cococry/leif / _lf_begin_loc

Function _lf_begin_loc

leif.c:2787–2797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2785}
2786
2787void _lf_begin_loc(const char* file, int32_t line) {
2788 state.pos_ptr = (vec2s){0, 0};
2789 renderer_begin();
2790 LfUIElementProps props = get_props_for(state.theme.div_props);
2791 props.color = (LfColor){0, 0, 0, 0};
2792 lf_push_style_props(props);
2793
2794 lf_div_begin(((vec2s){0, 0}), ((vec2s){(float)state.dsp_w, (float)state.dsp_h}), true);
2795
2796 lf_pop_style_props();
2797}
2798void lf_end() {
2799 lf_div_end();
2800

Callers

nothing calls this directly

Calls 4

renderer_beginFunction · 0.85
get_props_forFunction · 0.85
lf_push_style_propsFunction · 0.85
lf_pop_style_propsFunction · 0.85

Tested by

no test coverage detected