namespace Msp {
namespace GLtk {
-Button::Button(const std::string &t):
- text(),
- icon(0),
- pressed(false)
+Button::Button(const std::string &t)
{
input_type = INPUT_NAVIGATION;
set_text(t);
{
text = t;
signal_autosize_changed.emit();
- rebuild();
+ mark_rebuild();
}
void Button::set_icon(const GL::Texture2D *i)
{
icon = i;
- rebuild();
+ mark_rebuild();
}
void Button::rebuild_special(const Part &part)