3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GLTK_BUTTON_H_
9 #define MSP_GLTK_BUTTON_H_
11 #include <sigc++/sigc++.h>
18 A clickable button widget. Buttons can have a text label, which is displayed
19 in a spacial part "text".
21 class Button: public Widget
24 class Loader: public Widget::Loader
28 Button &get_object() const;
36 sigc::signal<void> signal_clicked;
38 Button(const Resources &, const std::string & =std::string());
39 void set_text(const std::string &);
40 virtual void button_press(int, int, unsigned);
41 virtual void button_release(int, int, unsigned);
42 virtual void pointer_motion(int, int);
44 virtual const char *get_class() const { return "button"; }
45 virtual void render_special(const Part &) const;