WindowsService

Trait WindowsService 

Source
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§

Source

fn widget_tree(&self, id: WindowId) -> Option<WidgetInfoTree>

Get the latest info tree for the window.

Source

fn widget_info(&self, id: WidgetId) -> Option<WidgetInfo>

Search for the widget in the latest info tree of each open window.

Source

fn update_info(&self, updates: &mut InfoUpdates)

Rebuild info trees.

Source

fn update_widgets(&self, updates: &mut WidgetUpdates)

Update window and widgets.

Source

fn update_layout(&self, updates: &mut LayoutUpdates)

Layout windows and widgets.

Source

fn update_render( &self, render_widgets: &mut RenderUpdates, render_update_widgets: &mut RenderUpdates, )

Update frames.

Implementors§