[][src]Struct druid::win_handler::SingleWindowState

struct SingleWindowState<T: Data + 'static + Default> {
    window_id: WindowId,
    phantom: PhantomData<T>,
}

Everything required for a window to handle an event.

Fields

window_id: WindowIdphantom: PhantomData<T>

Methods

impl<T: Data + 'static + Default> SingleWindowState<T>[src]

fn paint(&mut self, piet: &mut Piet, _ctx: &mut dyn WinCtx) -> bool[src]

fn do_layout(&mut self, piet: &mut Piet)[src]

fn do_paint(&mut self, piet: &mut Piet)[src]

fn do_event_inner(
    &mut self,
    event: Event,
    win_ctx: &mut dyn WinCtx
) -> (bool, bool, bool)
[src]

Send an event to the widget hierarchy.

Returns three flags. The first is true if the event was handled. The second is true if invalidation is requested. The third is true if an animation frame is requested.

fn window_got_focus(&mut self)[src]

Auto Trait Implementations

impl<T> Send for SingleWindowState<T> where
    T: Send

impl<T> Sync for SingleWindowState<T> where
    T: Sync

impl<T> Unpin for SingleWindowState<T> where
    T: 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.