whoops forgot about this one
This commit is contained in:
parent
29f0d9f56a
commit
336aadc7a0
1 changed files with 5 additions and 4 deletions
|
@ -188,10 +188,11 @@ PtkHandle ptk_circle(PtkPos center, float radius, PtkColor color) {
|
||||||
|
|
||||||
PtkHandle ptk_clickable(PtkHandle hitbox, MouseButtonCallback on_press) {
|
PtkHandle ptk_clickable(PtkHandle hitbox, MouseButtonCallback on_press) {
|
||||||
PtkClickable *ret = malloc(sizeof(PtkClickable));
|
PtkClickable *ret = malloc(sizeof(PtkClickable));
|
||||||
ret->type = PTK_COMPONENT_TYPE_CLICKABLE;
|
*ret = (PtkClickable){
|
||||||
ret->children.size = 0;
|
.type = PTK_COMPONENT_TYPE_CLICKABLE,
|
||||||
ret->hitbox = hitbox;
|
.hitbox = hitbox,
|
||||||
ret->on_press = on_press;
|
.on_press = on_press,
|
||||||
|
};
|
||||||
|
|
||||||
return (PtkHandle)ret;
|
return (PtkHandle)ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue