Skip to main content

UiServices

Trait UiServices 

Source
pub trait UiServices:
    TextService
    + PathService
    + SvgService
    + MaterialService { }
Expand description

UI runtime services passed to widgets during layout/paint/event handling.

This is intentionally a single &mut handle so runtimes can pass a single renderer-owned service object (similar to how GPUI passes a Window/context that provides multiple facilities).

Implementations§

Source§

impl dyn UiServices + '_

Source

pub fn text(&mut self) -> &mut dyn TextService

Source

pub fn path(&mut self) -> &mut dyn PathService

Source

pub fn svg(&mut self) -> &mut dyn SvgService

Source

pub fn materials(&mut self) -> &mut dyn MaterialService

Implementors§