[][src]Struct rq::wgt::Btn

pub struct Btn { /* fields omitted */ }

Methods

impl Btn[src]

pub fn make(s: &str) -> Self[src]

pub fn text(&self) -> String[src]

pub fn set_text(&mut self, s: &str)[src]

pub fn disconn(&mut self)[src]

pub fn on_clicked(btn: &mut WgtArc, cb: Arc<Mutex<dyn FnMut(&mut Btn, bool)>>)[src]

Set the callback on clicked.

Trait Implementations

impl WgtObj for Btn[src]

fn hold_wrc(&mut self, wrc: WgtArc)[src]

fn ch(&self) -> c_h[src]

fn detach(&self)[src]

fn _on_free(&self)[src]

Auto Trait Implementations

impl !Send for Btn

impl !Sync for Btn

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.