[][src]Struct kas::widget::Window

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

The main instantiation of the Window trait.

Methods

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

pub fn new<T: Into<CowString>>(title: T, w: W) -> Window<W>[src]

Create

pub fn set_restrict_dimensions(&mut self, min: bool, max: bool)[src]

Configure whether min/max dimensions are forced

By default, the min size is enforced but not the max.

pub fn add_callback(
    &mut self,
    condition: Callback,
    f: &'static dyn Fn(&mut W, &mut Manager)
)
[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 + Clone> Clone for Window<W>[src]

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

impl<W: Widget + 'static> Handler for Window<W> where
    W: Widget<Msg = VoidMsg>, 
[src]

type Msg = VoidMsg

Type of message returned by this widget Read more

impl<W: Widget> Layout for Window<W>[src]

impl<W: Widget<Msg = VoidMsg> + 'static> SendEvent for Window<W>[src]

impl<W: Widget + 'static> Widget for Window<W> where
    W: Widget<Msg = VoidMsg>, 
[src]

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

impl<W: Widget> WidgetConfig for Window<W>[src]

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

impl<W: Widget<Msg = VoidMsg> + 'static> Window for Window<W>[src]

Auto Trait Implementations

impl<W> !RefUnwindSafe for Window<W>

impl<W> !Send for Window<W>

impl<W> !Sync for Window<W>

impl<W> Unpin for Window<W> where
    W: Unpin

impl<W> !UnwindSafe for Window<W>

Blanket Implementations

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

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

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

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

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<T> ConvUtil for T[src]

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

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

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

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.

impl<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.