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

Function button

leif.c:614–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612
613
614LfClickableItemState button(const char* file, int32_t line, vec2s pos, vec2s size, LfUIElementProps props, LfColor color, float border_width, bool click_color, bool hover_color) {
615 return button_ex(file, line, pos, size, props, color, border_width, click_color, hover_color, (vec2s){-1, -1});
616}
617LfClickableItemState button_ex(const char* file, int32_t line, vec2s pos, vec2s size, LfUIElementProps props, LfColor color, float border_width, bool click_color, bool hover_color, vec2s hitbox_override) {
618 uint64_t id = DJB2_INIT;
619 id = djb2_hash(id, file, strlen(file));

Callers 11

input_fieldFunction · 0.85
button_element_locFunction · 0.85
button_fixed_element_locFunction · 0.85
checkbox_element_locFunction · 0.85
dropdown_menu_item_locFunction · 0.85
_lf_item_locFunction · 0.85
_lf_image_button_locFunction · 0.85
_lf_progress_bar_val_locFunction · 0.85
_lf_progress_bar_int_locFunction · 0.85

Calls 1

button_exFunction · 0.85

Tested by

no test coverage detected