NexusForce
1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
graph.hpp
浏览该文件的文档.
1
#ifndef NEFORCE_TUI_DOM_GRAPH_HPP__
2
#define NEFORCE_TUI_DOM_GRAPH_HPP__
3
10
11
#include "
NeForce/tui/dom/element.hpp
"
12
NEFORCE_BEGIN_NAMESPACE__
13
NEFORCE_BEGIN_TUI__
14
19
26
using
graph_function
=
function<vector<int>
(
int
width,
int
height)>;
27
35
element
NEFORCE_API
graph
(
const
vector<int>
& data_points,
int
width = 40,
int
height = 10);
36
44
element
NEFORCE_API
graph
(
graph_function
fn,
int
width = 40,
int
height = 10);
45
// TUI
47
48
NEFORCE_END_TUI__
49
NEFORCE_END_NAMESPACE__
50
#endif
// NEFORCE_TUI_DOM_GRAPH_HPP__
neforce::function
函数包装器主模板声明
定义
functional/function.hpp:30
neforce::tui::element
虚拟UI元素
定义
element.hpp:37
neforce::vector
动态大小数组容器
定义
vector.hpp:167
element.hpp
虚拟UI元素
neforce::tui::graph
element graph(const vector< int > &data_points, int width=40, int height=10)
创建折线图元素
neforce::tui::graph_function
function< vector< int >(int width, int height)> graph_function
折线图函数类型
定义
graph.hpp:26
include
NeForce
tui
dom
graph.hpp
制作者
1.16.0