gx_line_chart.h 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /**************************************************************************/
  2. /* */
  3. /* Copyright (c) Microsoft Corporation. All rights reserved. */
  4. /* */
  5. /* This software is licensed under the Microsoft Software License */
  6. /* Terms for Microsoft Azure RTOS. Full text of the license can be */
  7. /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */
  8. /* and in the root directory of this software. */
  9. /* */
  10. /**************************************************************************/
  11. /**************************************************************************/
  12. /**************************************************************************/
  13. /** */
  14. /** GUIX Component */
  15. /** */
  16. /** Line Chart (Charting) */
  17. /** */
  18. /**************************************************************************/
  19. /**************************************************************************/
  20. /**************************************************************************/
  21. /* */
  22. /* COMPONENT DEFINITION RELEASE */
  23. /* */
  24. /* gx_line_chart.h PORTABLE C */
  25. /* 6.0 */
  26. /* AUTHOR */
  27. /* */
  28. /* Kenneth Maxwell, Microsoft Corporation */
  29. /* */
  30. /* DESCRIPTION */
  31. /* */
  32. /* This file defines the GUIX line chart component, including all data */
  33. /* types and external references. It is assumed that gx_api.h and */
  34. /* gx_port.h have already been included. */
  35. /* */
  36. /* RELEASE HISTORY */
  37. /* */
  38. /* DATE NAME DESCRIPTION */
  39. /* */
  40. /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */
  41. /* */
  42. /**************************************************************************/
  43. #ifndef GX_LINE_CHART_H
  44. #define GX_LINE_CHART_H
  45. /* APIs defined for line chart widget */
  46. VOID _gx_line_chart_axis_draw(GX_LINE_CHART *chart);
  47. UINT _gx_line_chart_create(GX_LINE_CHART *chart,
  48. GX_CONST GX_CHAR *name,
  49. GX_WIDGET *parent,
  50. GX_CONST GX_LINE_CHART_INFO *info,
  51. ULONG style,
  52. USHORT chart_id,
  53. GX_CONST GX_RECTANGLE *size);
  54. VOID _gx_line_chart_data_draw(GX_LINE_CHART *chart);
  55. VOID _gx_line_chart_draw(GX_LINE_CHART *chart);
  56. UINT _gx_line_chart_update(GX_LINE_CHART *chart, INT *data, INT data_count);
  57. UINT _gx_line_chart_y_scale_calculate(GX_LINE_CHART *chart_info, INT *return_val);
  58. /* Define error checking shells for API services. These are only referenced by the
  59. application. */
  60. UINT _gxe_line_chart_create(GX_LINE_CHART *chart,
  61. GX_CONST GX_CHAR *name,
  62. GX_WIDGET *parent,
  63. GX_CONST GX_LINE_CHART_INFO *info,
  64. ULONG style,
  65. USHORT chart_id,
  66. GX_CONST GX_RECTANGLE *size,
  67. UINT control_block_size);
  68. UINT _gxe_line_chart_update(GX_LINE_CHART *chart, INT *data, INT data_count);
  69. UINT _gxe_line_chart_y_scale_calculate(GX_LINE_CHART *chart_info, INT *return_val);
  70. #endif