[−][src]Trait druid::win_handler::GlobalWindows
Specialised Trait for handling static Windows, Window Handlers and Application Data on embedded platforms
Required methods
fn add_window(&self, window_id: WindowId, window: WindowBox<D>)
Add a WindowBox for the Data type
fn add_handler(&self, window_id: WindowId, handler: DruidHandler<D>)
Add a Window Handler for the Data type
fn get_handle(&self, window_id: WindowId) -> WindowHandle<DruidHandler<D>>
Return a Window Handle that wraps the Window Handler for the Data type
fn set_data(&self, data: D)
Set the application data
fn window_event(
&mut self,
window_id: WindowId,
ctx: &mut EventCtx<D>,
event: &Event
)
&mut self,
window_id: WindowId,
ctx: &mut EventCtx<D>,
event: &Event
)
Handle the Window event
fn window_update(&mut self, window_id: WindowId, ctx: &mut UpdateCtx<D>)
Handle the Window update
fn window_layout(&mut self, window_id: WindowId, layout_ctx: &mut LayoutCtx)
Handle the Window layout
fn window_paint(&mut self, window_id: WindowId, paint_ctx: &mut PaintCtx)
Handle the Window painting
fn window_has_active(&mut self, window_id: WindowId) -> bool
Return true if Window is active
Implementors
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
)