X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgui%2Fbutton.hpp;h=b81f51dbf3b453c64e88fffd42e6068f096913e5;hb=6f5f82abb84b33fd400c3b82a5e2be2a6cf8ce21;hp=6f086b9f8f1cdef0360ba01f808efa92fcefd68d;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/gui/button.hpp b/src/gui/button.hpp index 6f086b9f8..b81f51dbf 100644 --- a/src/gui/button.hpp +++ b/src/gui/button.hpp @@ -42,7 +42,7 @@ class Button public: Button(Surface* image_, std::string info_, SDLKey binding_); ~Button(); - + void draw(DrawingContext& context, bool selected); int event(SDL_Event& event, int x_offset = 0, int y_offset = 0); @@ -72,7 +72,7 @@ public: void add_button(Button button, int id, bool select = false); void add_pair_of_buttons(Button button1, int id1, Button button2, int id2); - + int selected_id(); void set_unselected(); bool is_hover();