NexusForce
1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
hoverable.hpp
浏览该文件的文档.
1
#ifndef NEFORCE_TUI_COMPONENT_HOVERABLE_HPP__
2
#define NEFORCE_TUI_COMPONENT_HOVERABLE_HPP__
3
10
11
#include "
NeForce/tui/component/component.hpp
"
12
NEFORCE_BEGIN_NAMESPACE__
13
NEFORCE_BEGIN_TUI__
14
NEFORCE_BEGIN_COMPONENTS__
15
20
25
33
unique_ptr<component_base>
NEFORCE_API
hoverable
(
unique_ptr<component_base>
child,
function
<
void
()> on_enter,
34
function
<
void
()> on_leave);
35
42
unique_ptr<component_base>
NEFORCE_API
hoverable
(
unique_ptr<component_base>
child,
bool
* hovered);
43
// Components
45
// TUI
47
48
NEFORCE_END_COMPONENTS__
49
NEFORCE_END_TUI__
50
NEFORCE_END_NAMESPACE__
51
#endif
// NEFORCE_TUI_COMPONENT_HOVERABLE_HPP__
neforce::function
函数包装器主模板声明
定义
functional/function.hpp:30
neforce::unique_ptr
独占智能指针
定义
unique_ptr.hpp:206
component.hpp
TUI组件基类
neforce::tui::components::hoverable
unique_ptr< component_base > hoverable(unique_ptr< component_base > child, function< void()> on_enter, function< void()> on_leave)
创建鼠标悬停检测组件
include
NeForce
tui
component
hoverable.hpp
制作者
1.16.0