implotWrapper.h 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #pragma once
  2. #include "imguiWrapperTypes.h"
  3. #include "implotWrapperTypes.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. extern void iggImPlotSetNextPlotLimits(double xmin, double xmax, double ymin, double ymax, int cond);
  8. extern void iggImPlotSetNextPlotTicksX(const double* values, int n_ticks, const char* const labels[], IggBool show_default);
  9. extern void iggImPlotSetNextPlotTicksY(const double* values, int n_ticks, const char* const labels[], IggBool show_default, int y_axis);
  10. extern void iggImPlotFitNextPlotAxes(IggBool x, IggBool y, IggBool y2, IggBool y3);
  11. extern IggImPlotContext iggImPlotCreateContext();
  12. extern void iggImPlotDestroyContext();
  13. extern IggBool iggImPlotBeginPlot(const char* title_id,
  14. const char* x_label,
  15. const char* y_label,
  16. const IggVec2* size,
  17. int flags,
  18. int x_flags,
  19. int y_flags,
  20. int y2_flags,
  21. int y3_flags,
  22. const char* y2_label,
  23. const char* y3_label);
  24. extern void iggImPlotEndPlot();
  25. extern void iggImPlotLine(const char* label_id, const double* values, int count, double xscale, double x0, int offset);
  26. extern void iggImPlotLineXY(const char* label_id, const double* xs, const double* ys, int count, int offset);
  27. extern void iggImPlotScatter(const char* label_id, const double* values, int count, double xscale, double x0, int offset);
  28. extern void iggImPlotScatterXY(const char* label_id, const double* xs, const double* ys, int count, int offset);
  29. extern void iggImPlotBars(const char* label_id, const double* values, int count, double width, double shift, int offset);
  30. extern void iggImPlotBarsXY(const char* label_id, const double* xs, const double* ys, int count, double width, int offset);
  31. extern void iggImPlotBarsH(const char* label_id, const double* values, int count, double height, double shift, int offset);
  32. extern void iggImPlotBarsHXY(const char* label_id, const double* xs, const double* ys, int count, double height, int offset);
  33. extern void iggImPlotStairs(const char* label_id, const double* values, int count, double xscale, double x0, int offset);
  34. extern void iggImPlotStairsXY(const char* label_id, const double* xs, const double* ys, int count, int offset);
  35. extern void iggImPlotErrorBars(const char* label_id, const double* xs, const double* ys, const double* err, int count, int offset);
  36. extern void iggImPlotErrorBarsH(const char* label_id, const double* xs, const double* ys, const double* err, int count, int offset);
  37. extern void iggImPlotStems(const char* label_id, const double* values, int count, double y_ref, double xscale, double x0, int offset);
  38. extern void iggImPlotStemsXY(const char* label_id, const double* xs, const double* ys, int count, double y_ref, int offset);
  39. extern void iggImPlotVLines(const char* label_id, const double* xs, int count, int offset);
  40. extern void iggImPlotHLines(const char* label_id, const double* ys, int count, int offset);
  41. 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);
  42. extern void iggImPlotGetPlotPos(IggVec2 *pos);
  43. extern void iggImPlotGetPlotSize(IggVec2 *size);
  44. extern IggBool iggImPlotIsPlotHovered();
  45. extern IggBool iggImPlotIsPlotXAxisHovered();
  46. extern IggBool iggImPlotIsPlotYAxisHovered(int y_axis);
  47. extern void iggImPlotUseLocalTime(IggBool localtime);
  48. extern void iggImPlotUseISO8601(IggBool iso8601);
  49. extern void iggImPlotUse24HourClock(IggBool clock24h);
  50. extern void iggImPlotSetPlotYAxis(int y_axis);
  51. #ifdef __cplusplus
  52. }
  53. #endif