value(false),
exclusive(false)
{
+ input_type = INPUT_NAVIGATION;
set_text(t);
}
}
}
+bool Toggle::navigate(Navigation nav)
+{
+ if(nav==NAV_ACTIVATE)
+ {
+ if(!value || !exclusive)
+ set_value(!value);
+ return true;
+ }
+
+ return false;
+}
+
void Toggle::on_style_change()
{
text.set_style(style);