blob: c0ff5a81776cf8e25b2d30eb42bbd19b6d1287e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#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
|