aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Button.cpp
blob: 305922c3bac14182c65f8f124c092983e96b5170 (plain)
1
2
3
4
5
6
7
8
9
10
#include "Button.h"

namespace crepe {

Button::Button(game_object_id_t id, const vec2 & dimensions, const vec2 & offset,
			   const std::function<void()> & on_click)
	: UIObject(id, dimensions, offset),
	  on_click(on_click) {}

} // namespace crepe