Struct tuix::CheckButton [−]
Fields
text: Option<String>
Implementations
impl CheckButton
impl CheckButton
pub fn new() -> CheckButton
pub fn with_label(name: &str) -> CheckButton
pub fn set_checked(self, checked: bool) -> CheckButton
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
impl Default for CheckButton
impl Default for CheckButton
pub fn default() -> CheckButton
pub fn default() -> CheckButton
Returns the “default value” for a type. Read more
impl Widget for CheckButton
impl Widget for CheckButton
pub fn on_update(
&mut self,
state: &mut State,
entity: Entity,
data: &<CheckButton as Widget>::Data
)
fn widget_name(&self) -> String
Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids
Auto Trait Implementations
impl !RefUnwindSafe for CheckButton
impl !Send for CheckButton
impl !Sync for CheckButton
impl Unpin for CheckButton
impl !UnwindSafe for CheckButton
Blanket Implementations
Mutably borrows from an owned value. Read more