forked from HACKERALERT/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimplotWrapper.h
74 lines (53 loc) · 3.75 KB
/
implotWrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#pragma once
#include "imguiWrapperTypes.h"
#include "implotWrapperTypes.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void iggImPlotSetNextPlotLimits(double xmin, double xmax, double ymin, double ymax, int cond);
extern void iggImPlotSetNextPlotTicksX(const double* values, int n_ticks, const char* const labels[], IggBool show_default);
extern void iggImPlotSetNextPlotTicksY(const double* values, int n_ticks, const char* const labels[], IggBool show_default, int y_axis);
extern void iggImPlotFitNextPlotAxes(IggBool x, IggBool y, IggBool y2, IggBool y3);
extern IggImPlotContext iggImPlotCreateContext();
extern void iggImPlotDestroyContext();
extern IggBool iggImPlotBeginPlot(const char* title_id,
const char* x_label,
const char* y_label,
const IggVec2* size,
int flags,
int x_flags,
int y_flags,
int y2_flags,
int y3_flags,
const char* y2_label,
const char* y3_label);
extern void iggImPlotEndPlot();
extern void iggImPlotLine(const char* label_id, const double* values, int count, double xscale, double x0, int offset);
extern void iggImPlotLineXY(const char* label_id, const double* xs, const double* ys, int count, int offset);
extern void iggImPlotScatter(const char* label_id, const double* values, int count, double xscale, double x0, int offset);
extern void iggImPlotScatterXY(const char* label_id, const double* xs, const double* ys, int count, int offset);
extern void iggImPlotBars(const char* label_id, const double* values, int count, double width, double shift, int offset);
extern void iggImPlotBarsXY(const char* label_id, const double* xs, const double* ys, int count, double width, int offset);
extern void iggImPlotBarsH(const char* label_id, const double* values, int count, double height, double shift, int offset);
extern void iggImPlotBarsHXY(const char* label_id, const double* xs, const double* ys, int count, double height, int offset);
extern void iggImPlotStairs(const char* label_id, const double* values, int count, double xscale, double x0, int offset);
extern void iggImPlotStairsXY(const char* label_id, const double* xs, const double* ys, int count, int offset);
extern void iggImPlotErrorBars(const char* label_id, const double* xs, const double* ys, const double* err, int count, int offset);
extern void iggImPlotErrorBarsH(const char* label_id, const double* xs, const double* ys, const double* err, int count, int offset);
extern void iggImPlotStems(const char* label_id, const double* values, int count, double y_ref, double xscale, double x0, int offset);
extern void iggImPlotStemsXY(const char* label_id, const double* xs, const double* ys, int count, double y_ref, int offset);
extern void iggImPlotVLines(const char* label_id, const double* xs, int count, int offset);
extern void iggImPlotHLines(const char* label_id, const double* ys, int count, int offset);
extern void iggImPlotPieChart(const char* const label_ids[], const double* values, int count, double x, double y, double radius, IggBool normalize, const char* label_fmt, double angle0);
extern void iggImPlotGetPlotPos(IggVec2 *pos);
extern void iggImPlotGetPlotSize(IggVec2 *size);
extern IggBool iggImPlotIsPlotHovered();
extern IggBool iggImPlotIsPlotXAxisHovered();
extern IggBool iggImPlotIsPlotYAxisHovered(int y_axis);
extern void iggImPlotUseLocalTime(IggBool localtime);
extern void iggImPlotUseISO8601(IggBool iso8601);
extern void iggImPlotUse24HourClock(IggBool clock24h);
extern void iggImPlotSetPlotYAxis(int y_axis);
#ifdef __cplusplus
}
#endif