blob: 76f74f0303318ff7fff9039e8491cfc4a9300742 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "Button.h"
namespace crepe {
Button::Button(game_object_id_t id, const vec2 & dimensions, const vec2 & offset,
const std::function<void()> & on_click, bool is_toggle)
: UIObject(id, dimensions, offset),
is_toggle(is_toggle),
on_click(on_click) {}
} // namespace crepe
|