#include <string>
#include "math/vector.hpp"
+#include "video/font_ptr.hpp"
#include "video/surface_ptr.hpp"
class DrawingContext;
class Button
{
public:
- Button(SurfacePtr image_, std::string info_, SDLKey binding_);
+ Button(SurfacePtr image_, std::string info_, SDL_Keycode binding_);
Button(const Button& rhs);
~Button();
void draw(DrawingContext& context, bool selected);
int event(SDL_Event& event, int x_offset = 0, int y_offset = 0);
- static Font* info_font;
+ static FontPtr info_font;
private:
friend class ButtonGroup;
Vector size;
SurfacePtr image;
- SDLKey binding;
+ SDL_Keycode binding;
int id;
int state;