3 This file is part of libmspgltk
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
14 Button::Button(const Resources &r, const std::string &t):
21 void Button::set_text(const std::string &t)
26 void Button::button_press(int, int, unsigned btn)
32 void Button::button_release(int x, int y, unsigned btn)
36 if(geom.is_inside_relative(x, y))
39 signal_clicked.emit();
46 void Button::pointer_enter()
51 void Button::pointer_leave()
56 void Button::render_special(const Part &part) const
58 if(part.get_name()=="text")
59 render_text(part, text);
63 Button::Loader::Loader(Button &btn):
66 add("text", &Button::text);
69 Button &Button::Loader::get_object() const
71 return static_cast<Button &>(wdg);