rename button to clickable in one more place
This commit is contained in:
parent
6aeb2124d9
commit
4b1fdf8e04
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue