pub trait WindowsService:
Any
+ Send
+ Sync {
// Required methods
fn widget_tree(&self, id: WindowId) -> Option<WidgetInfoTree>;
fn widget_info(&self, id: WidgetId) -> Option<WidgetInfo>;
fn update_info(&self, updates: &mut InfoUpdates);
fn update_widgets(&self, updates: &mut WidgetUpdates);
fn update_layout(&self, updates: &mut LayoutUpdates);
fn update_render(
&self,
render_widgets: &mut RenderUpdates,
render_update_widgets: &mut RenderUpdates,
);
}Expand description
Represents the WINDOWS service.
Required Methods§
Sourcefn widget_tree(&self, id: WindowId) -> Option<WidgetInfoTree>
fn widget_tree(&self, id: WindowId) -> Option<WidgetInfoTree>
Get the latest info tree for the window.
Sourcefn widget_info(&self, id: WidgetId) -> Option<WidgetInfo>
fn widget_info(&self, id: WidgetId) -> Option<WidgetInfo>
Search for the widget in the latest info tree of each open window.
Sourcefn update_info(&self, updates: &mut InfoUpdates)
fn update_info(&self, updates: &mut InfoUpdates)
Rebuild info trees.
Sourcefn update_widgets(&self, updates: &mut WidgetUpdates)
fn update_widgets(&self, updates: &mut WidgetUpdates)
Update window and widgets.
Sourcefn update_layout(&self, updates: &mut LayoutUpdates)
fn update_layout(&self, updates: &mut LayoutUpdates)
Layout windows and widgets.
Sourcefn update_render(
&self,
render_widgets: &mut RenderUpdates,
render_update_widgets: &mut RenderUpdates,
)
fn update_render( &self, render_widgets: &mut RenderUpdates, render_update_widgets: &mut RenderUpdates, )
Update frames.