[][src]Struct druid::windowbox::WindowBox

pub struct WindowBox<D: Data + 'static + Default>(pub WindowType<D>);

Boxed version of a Window

Methods

impl<D: Data + 'static + Default> WindowBox<D>[src]

Generic implementation of WindowBox

pub fn new() -> Self[src]

Create a new empty box without a Window

impl<D: Data + 'static + Default> WindowBox<D>[src]

Implementation of WindowBox. We just forward to the inner Window.

pub fn event(
    &mut self,
    ctx: &mut EventCtx<D>,
    event: &Event,
    data: &mut D,
    env: &Env
)
[src]

pub fn update(&mut self, ctx: &mut UpdateCtx<D>, data: &D, env: &Env)[src]

pub fn layout(&mut self, layout_ctx: &mut LayoutCtx, data: &D, env: &Env)[src]

pub fn paint(&mut self, paint_ctx: &mut PaintCtx, data: &D, env: &Env)[src]

pub fn has_active(&mut self) -> bool[src]

Trait Implementations

impl<D: Clone + Data + 'static + Default> Clone for WindowBox<D>[src]

impl<D: Default + Data + 'static> Default for WindowBox<D>[src]

Auto Trait Implementations

impl<D> Send for WindowBox<D> where
    D: Send

impl<D> Sync for WindowBox<D> where
    D: Sync

impl<D> Unpin for WindowBox<D> where
    D: Unpin

Blanket Implementations

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

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

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

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

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

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

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 
[src]

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

type Output = T

Should always be Self

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