aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Button.cpp
blob: 313ec4c19ac5b72d7f36eca91b825161675c9631 (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