rename button to clickable in one more place

This commit is contained in:
jacekpoz 2024-08-12 23:49:52 +02:00
parent 6aeb2124d9
commit 4b1fdf8e04
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -176,9 +176,9 @@ PtkHandle ptk_circle(PtkPos center, float radius, PtkColor color) {
return ptk_ellipse(center, (PtkSize){ .w = radius, .h = radius }, color); return ptk_ellipse(center, (PtkSize){ .w = radius, .h = radius }, color);
} }
PtkHandle ptk_button(PtkHandle hitbox, MouseButtonCallback on_press) { PtkHandle ptk_clickable(PtkHandle hitbox, MouseButtonCallback on_press) {
PtkButton *ret = malloc(sizeof(PtkButton)); PtkClickable *ret = malloc(sizeof(PtkClickable));
ret->type = PTK_COMPONENT_TYPE_BUTTON; ret->type = PTK_COMPONENT_TYPE_CLICKABLE;
ret->hitbox = hitbox; ret->hitbox = hitbox;
ret->on_press = on_press; ret->on_press = on_press;