[][src]Struct titik::Radio

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

Radio button widget

Implementations

impl<MSG> Radio<MSG>[src]

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

create a new radio button with label

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

set the label value

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

set the checked status

Trait Implementations

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

impl<MSG: Default> Default for Radio<MSG>[src]

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

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

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

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

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

Auto Trait Implementations

impl<MSG> !RefUnwindSafe for Radio<MSG>

impl<MSG> !Send for Radio<MSG>

impl<MSG> !Sync for Radio<MSG>

impl<MSG> Unpin for Radio<MSG>

impl<MSG> !UnwindSafe for Radio<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> SetParameter for T

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.