13 return decorator(component);
18 return component |
Renderer(decorator);
23 component = component | decorator;
29 component = component | decorator;
std::function< Element(Element)> ElementDecorator
std::shared_ptr< ComponentBase > Component
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
Component operator|(Component component, ComponentDecorator decorator)
Component & operator|=(Component &component, ComponentDecorator decorator)
std::function< Component(Component)> ComponentDecorator