Struct tuix_internal::CheckButton [−][src]
Fields
text: Option<String>
Implementations
pub fn on_checked<F>(self, callback: F) -> CheckButton where
F: 'static + Fn(&mut CheckButton, &mut State, Entity),
pub fn on_unchecked<F>(self, callback: F) -> CheckButton where
F: 'static + Fn(&mut CheckButton, &mut State, Entity),
Trait Implementations
Returns the “default value” for a type. Read more
pub fn on_update(
&mut self,
state: &mut State,
entity: Entity,
data: &<CheckButton as Widget>::Data
)
Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids