[][src]Struct druid::win_handler::AppState

pub struct AppState<T: Data + 'static + Default> {
    phantom: PhantomData<T>,
}

State shared by all windows in the UI.

Fields

phantom: PhantomData<T>

Methods

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

pub(crate) fn new() -> Self[src]

fn remove_window(
    &mut self,
    _id: WindowId
) -> Option<WindowHandle<DruidHandler<T>>>
[src]

fn show_window(&mut self, _id: WindowId)[src]

fn assemble_window_state(
    &mut self,
    window_id: WindowId
) -> Option<SingleWindowState<T>>
[src]

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

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

fn window_got_focus(&mut self, window_id: WindowId, _ctx: &mut dyn WinCtx)[src]

Trait Implementations

impl<T: Clone + Data + 'static + Default> Clone for AppState<T>[src]

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

Default Trait will not have static Windows and Window Handlers

Auto Trait Implementations

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

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

impl<T> Unpin for AppState<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.