| 2835 | } |
| 2836 | |
| 2837 | vec2s lf_button_dimension(const char* text) { |
| 2838 | LfUIElementProps props = get_props_for(state.theme.button_props); |
| 2839 | float padding = props.padding; |
| 2840 | vec2s text_dimension = lf_text_dimension(text); |
| 2841 | return (vec2s){text_dimension.x + padding * 2.0f, text_dimension.y + padding}; |
| 2842 | } |
| 2843 | |
| 2844 | float lf_get_text_end(const char* str, float start_x) { |
| 2845 | LfFont font = get_current_font(); |
nothing calls this directly
no test coverage detected