Struct titik::Checkbox[][src]

pub struct Checkbox<MSG> { /* fields omitted */ }

A checkbox widget

Implementations

impl<MSG> Checkbox<MSG>[src]

pub fn new<S>(label: S) -> Self where
    S: ToString
[src]

create a new checkbox with label

pub fn set_label<S: ToString>(&mut self, label: S)[src]

set the checkbox label

pub fn set_checked(&mut self, checked: bool)[src]

set the checked status

pub fn add_input_listener(&mut self, cb: Callback<Event, MSG>)[src]

attach a listener to this checkbox which will be triggered when the check status is changed

Trait Implementations

impl<MSG> Debug for Checkbox<MSG>[src]

impl<MSG> Default for Checkbox<MSG>[src]

impl<MSG: PartialEq> PartialEq<Checkbox<MSG>> for Checkbox<MSG>[src]

impl<MSG> StructuralPartialEq for Checkbox<MSG>[src]

impl<MSG: 'static> Widget<MSG> for Checkbox<MSG>[src]

fn draw(&self, buf: &mut Buffer) -> Vec<Cmd>[src]

draw this button to the buffer, with the given computed layout

Auto Trait Implementations

impl<MSG> !RefUnwindSafe for Checkbox<MSG>

impl<MSG> !Send for Checkbox<MSG>

impl<MSG> !Sync for Checkbox<MSG>

impl<MSG> Unpin for Checkbox<MSG>

impl<MSG> !UnwindSafe for Checkbox<MSG>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.