[][src]Struct kas::display::Entry

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

An editable, single-line text box.

Methods

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

pub fn new_on_activate(text: String, handler: H) -> Self
[src]

Construct an Entry with the given initial text.

The handler is called when Action::Activate is received (when the "enter" key is pressed) and its result is returned from the event handler.

impl Entry<()>
[src]

pub fn new(editable: bool, text: String) -> Self
[src]

Construct an Entry which is optionally editable, and has the given inital text.

Trait Implementations

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

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

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

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

impl<H> Editable for Entry<H>
[src]

impl Handler for Entry<()>
[src]

type Response = NoResponse

Type of message returned by this handler. Read more

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

type Response = R

Type of message returned by this handler. Read more

impl<H: Clone + 'static> Clone for Entry<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 Entry<H>
[src]

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

Auto Trait Implementations

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

impl<H> Sync for Entry<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]