blob: 077a5e727dad2687296da4bf33512f17c163056c (
plain)
1
2
3
4
5
6
7
8
|
#include "Button.h"
namespace crepe {
Button::Button(game_object_id_t id, int width, int height, bool is_toggle, std::function<void()> on_click)
: UiObject(id, width, height), is_toggle(is_toggle), is_pressed(false), hover(false), on_click(on_click) {}
} // namespace crepe
|