[][src]Struct kas::SimpleWindow

pub struct SimpleWindow<W: Widget + 'static> { /* fields omitted */ }

The main instantiation of the Window trait.

TODO: change the name?

Methods

impl<W: Widget> SimpleWindow<W>
[src]

pub fn new(w: W) -> SimpleWindow<W>
[src]

Create

pub fn add_callback(
    &mut self,
    f: &'static dyn Fn(&mut W, &dyn TkWidget),
    conditions: &[Condition]
)
[src]

Add a closure to be called, with a reference to self, on the given condition. The closure must be passed by reference.

Trait Implementations

impl<W: Widget + 'static> Layout for SimpleWindow<W>
[src]

impl<W: Widget + 'static> Core for SimpleWindow<W>
[src]

impl<W: Widget + 'static> Widget for SimpleWindow<W>
[src]

impl<R, W: Widget + Handler<Response = R> + 'static> Window for SimpleWindow<W> where
    GuiResponse: From<R>,
    R: From<NoResponse>, 
[src]

fn trigger_callback(&mut self, index: usize, tk: &dyn TkWidget)
[src]

Trigger a callback (see iter_callbacks).

impl<W: Widget + Clone> Clone for SimpleWindow<W>
[src]

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

Performs copy-assignment from source. Read more

impl<W: Widget> Debug for SimpleWindow<W>
[src]

Auto Trait Implementations

impl<W> !Send for SimpleWindow<W>

impl<W> !Sync for SimpleWindow<W>

Blanket Implementations

impl<T> From for T
[src]

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, 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> 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

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

The type returned in the event of a conversion error.

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