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
12NEFORCE_BEGIN_NAMESPACE__
13NEFORCE_BEGIN_TUI__
14
19
26using graph_function = function<vector<int>(int width, int height)>;
27
35element NEFORCE_API graph(const vector<int>& data_points, int width = 40, int height = 10);
36
44element NEFORCE_API graph(graph_function fn, int width = 40, int height = 10);
45 // TUI
47
48NEFORCE_END_TUI__
49NEFORCE_END_NAMESPACE__
50#endif // NEFORCE_TUI_DOM_GRAPH_HPP__
函数包装器主模板声明
动态大小数组容器
虚拟UI元素
element graph(const vector< int > &data_points, int width=40, int height=10)
创建折线图元素
function< vector< int >(int width, int height)> graph_function
折线图函数类型