Skip to main content

ui_component_chrome_layout

Macro ui_component_chrome_layout 

Source
macro_rules! ui_component_chrome_layout {
    ($ty:ty) => { ... };
}
Expand description

Implement the UiBuilder patch + render glue for a component that supports both chrome and layout refinements.

The type must provide:

  • fn refine_style(self, ChromeRefinement) -> Self
  • fn refine_layout(self, LayoutRefinement) -> Self
  • fn into_element(self, &mut ElementContext<'_, H>) -> AnyElement