Struct zng_app::update::ContextUpdates
source · pub struct ContextUpdates {
pub events: Vec<EventUpdate>,
pub update: bool,
pub info: bool,
pub layout: bool,
pub render: bool,
pub update_widgets: WidgetUpdates,
pub info_widgets: InfoUpdates,
pub layout_widgets: LayoutUpdates,
pub render_widgets: RenderUpdates,
pub render_update_widgets: RenderUpdates,
}Expand description
Updates that must be reacted by an app owner.
This type is public only for testing, it is the return type for test methods of WINDOW.
Fields§
§events: Vec<EventUpdate>Events to notify.
When this is not empty update is true.
update: boolUpdate requested.
When this is true, update_widgets
may contain widgets, if not then only app extensions must update.
info: boolInfo rebuild requested.
When this is true, info_widgets
may contain widgets, if not then only app extensions must update.
layout: boolLayout requested.
When this is true, layout_widgets
may contain widgets, if not then only app extensions must update.
render: boolRender requested.
When this is true, render_widgets or render_update_widgets
may contain widgets, if not then only app extensions must update.
update_widgets: WidgetUpdatesUpdate targets.
When this is not empty update is true.
info_widgets: InfoUpdatesInfo rebuild targets.
When this is not empty info is true.
layout_widgets: LayoutUpdatesLayout targets.
When this is not empty layout is true.
render_widgets: RenderUpdatesFull render targets.
When this is not empty render is true.
render_update_widgets: RenderUpdatesRender update targets.
When this is not empty render is true.
Implementations§
source§impl ContextUpdates
impl ContextUpdates
sourcepub fn has_updates(&self) -> bool
pub fn has_updates(&self) -> bool
If has events, update, layout or render was requested.
Trait Implementations§
source§impl BitOr for ContextUpdates
impl BitOr for ContextUpdates
source§impl BitOrAssign for ContextUpdates
impl BitOrAssign for ContextUpdates
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read more