[][src]Struct kas::control::TextButton

pub struct TextButton<H: 'static> { /* fields omitted */ }

A push-button with a text label

Methods

impl<R, H: Fn() -> R> TextButton<H>
[src]

pub fn new<S: Into<String>>(text: S, handler: H) -> Self
[src]

Construct a button with a given text label.

The handler is called when the button is pressed, and its result is returned from the event handler.

Trait Implementations

impl<H: 'static> Layout for TextButton<H>
[src]

impl<H: 'static> Core for TextButton<H>
[src]

impl<H: 'static> Widget for TextButton<H>
[src]

impl<H> HasText for TextButton<H>
[src]

impl<R: From<NoResponse>, H: Fn() -> R> Handler for TextButton<H>
[src]

type Response = R

Type of message returned by this handler. Read more

impl<H: Clone + 'static> Clone for TextButton<H>
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<H: Default + 'static> Default for TextButton<H>
[src]

impl<H> Debug for TextButton<H>
[src]

Auto Trait Implementations

impl<H> Send for TextButton<H> where
    H: Send

impl<H> Sync for TextButton<H> where
    H: Sync

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T
[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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