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

Function lf_rect

leif.c:3566–3574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3564}
3565
3566void lf_rect(float width, float height, LfColor color, float corner_radius) {
3567 // Rendering the rect
3568 next_line_on_overflow((vec2s){(float)width, (float)height},
3569 state.div_props.border_width);
3570
3571 lf_rect_render(state.pos_ptr, (vec2s){(float)width, (float)height}, color, (LfColor){0.0f, 0.0f, 0.0f, 0.0f}, 0, corner_radius);
3572
3573 state.pos_ptr.x += width;
3574}
3575
3576void lf_seperator() {
3577 lf_next_line();

Callers

nothing calls this directly

Calls 2

next_line_on_overflowFunction · 0.85
lf_rect_renderFunction · 0.85

Tested by

no test coverage detected