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):
22 void Button::set_text(const std::string &t)
27 void Button::button_press(int, int, unsigned btn)
36 void Button::button_release(int x, int y, unsigned btn)
40 if(geom.is_inside_relative(x, y))
43 signal_clicked.emit();
52 void Button::pointer_enter()
57 void Button::pointer_leave()
62 void Button::render_special(const Part &part) const
64 if(part.get_name()=="text")
65 render_text(part, text);
69 Button::Loader::Loader(Button &btn):
72 add("text", &Button::text);
75 Button &Button::Loader::get_object() const
77 return static_cast<Button &>(wdg);