1#ifndef NEFORCE_TUI_COMPONENT_RENDERER_HPP__
2#define NEFORCE_TUI_COMPONENT_RENDERER_HPP__
13NEFORCE_BEGIN_NAMESPACE__
15NEFORCE_BEGIN_COMPONENTS__
74NEFORCE_END_COMPONENTS__
76NEFORCE_END_NAMESPACE__
unique_ptr< component_base > catch_event(unique_ptr< component_base > child, function< bool(const key_event &)> on_event)
在事件传递到子组件前拦截处理
unique_ptr< component_base > renderer(unique_ptr< component_base > child, function< element()> render_fn)
使用渲染函数覆盖子组件的 render()
unique_ptr< component_base > maybe(unique_ptr< component_base > child, const bool *show)
条件渲染组件