7 Button::Button(const Resources &r, const std::string &t):
14 void Button::set_text(const std::string &t)
19 void Button::button_press(int x, int y, unsigned btn)
21 if(geom.is_inside(x, y) && btn==1)
25 void Button::button_release(int x, int y, unsigned btn)
30 if(geom.is_inside(x, y))
31 signal_clicked.emit();
35 void Button::render_part(const Part &part) const
37 if(part.get_name()=="text")
38 render_text(part, text);
40 Widget::render_part(part);