use super::*;
use super::super::property::*;
use modifier::*;
#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]
pub enum State {
Selected(Property),
Badged(Property),
Value(Property),
Range((Property, Property))
}
impl Modifier<Control> for State {
fn modify(self, control: &mut Control) {
control.add_attribute(ControlAttribute::StateAttr(self))
}
}
impl<'a> Modifier<Control> for &'a State {
fn modify(self, control: &mut Control) {
control.add_attribute(ControlAttribute::StateAttr(self.clone()))
}
}