[−][src]Struct druid::AppState
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]
&mut self,
_id: WindowId
) -> Option<WindowHandle<DruidHandler<T>>>
fn show_window(&mut self, _id: WindowId)[src]
fn assemble_window_state(
&mut self,
window_id: WindowId
) -> Option<SingleWindowState<T>>[src]
&mut self,
window_id: WindowId
) -> Option<SingleWindowState<T>>
fn paint(
&mut self,
window_id: WindowId,
piet: &mut Piet,
ctx: &mut dyn WinCtx
) -> bool[src]
&mut self,
window_id: WindowId,
piet: &mut Piet,
ctx: &mut dyn WinCtx
) -> bool
fn do_event(
&mut self,
source_id: WindowId,
event: Event,
win_ctx: &mut dyn WinCtx
) -> bool[src]
&mut self,
source_id: WindowId,
event: Event,
win_ctx: &mut dyn WinCtx
) -> bool
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]
fn clone(&self) -> AppState<T>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<D: Data + 'static + Default> GlobalWindows<D> for AppState<D>[src]
Default Trait will not have static Windows and Window Handlers
default fn add_window(&self, _window_id: WindowId, _window: WindowBox<D>)[src]
default fn add_handler(&self, _window_id: WindowId, _handler: DruidHandler<D>)[src]
default fn get_handle(
&self,
_window_id: WindowId
) -> WindowHandle<DruidHandler<D>>[src]
&self,
_window_id: WindowId
) -> WindowHandle<DruidHandler<D>>
default fn set_data(&self, _data: D)[src]
default fn window_event(
&mut self,
_window_id: WindowId,
_ctx: &mut EventCtx<D>,
_event: &Event
)[src]
&mut self,
_window_id: WindowId,
_ctx: &mut EventCtx<D>,
_event: &Event
)
default fn window_update(
&mut self,
_window_id: WindowId,
_ctx: &mut UpdateCtx<D>
)[src]
&mut self,
_window_id: WindowId,
_ctx: &mut UpdateCtx<D>
)
default fn window_layout(
&mut self,
_window_id: WindowId,
_layout_ctx: &mut LayoutCtx
)[src]
&mut self,
_window_id: WindowId,
_layout_ctx: &mut LayoutCtx
)
default fn window_paint(
&mut self,
_window_id: WindowId,
_paint_ctx: &mut PaintCtx
)[src]
&mut self,
_window_id: WindowId,
_paint_ctx: &mut PaintCtx
)
default fn window_has_active(&mut self, _window_id: WindowId) -> bool[src]
Auto Trait Implementations
impl<T> Send for AppState<T> where
T: Send,
T: Send,
impl<T> Sync for AppState<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AppState<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> RoundFrom<T> for T[src]
fn round_from(x: T) -> T[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>, [src]
U: RoundFrom<T>,
fn round_into(self) -> U[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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,