/*************************************************************************** * Copyright (c) 2024 Microsoft Corporation * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ /**************************************************************************/ /** */ /** GUIX Component */ /** */ /** Line Chart Management (Line Chart) */ /** */ /**************************************************************************/ #define GX_SOURCE_CODE /* Include necessary system files. */ #include "gx_api.h" #include "gx_system.h" #include "gx_window.h" #include "gx_line_chart.h" /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _gx_line_chart_update PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* Kenneth Maxwell, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This function updates the data array associated with a line chart */ /* */ /* INPUT */ /* */ /* chart GX_LINE_CHART control block */ /* data Data array */ /* data_count Data array size */ /* */ /* OUTPUT */ /* */ /* Completion Status */ /* */ /* CALLS */ /* Mark widget dirty */ /* _gx_system_dirty_mark */ /* */ /* CALLED BY */ /* */ /* Application Code */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ /* resulting in version 6.1 */ /* */ /**************************************************************************/ UINT _gx_line_chart_update(GX_LINE_CHART *chart, INT *data, INT data_count) { chart -> gx_line_chart_info.gx_line_chart_data = data; chart -> gx_line_chart_info.gx_line_chart_active_data_count = (GX_VALUE)data_count; _gx_system_dirty_mark((GX_WIDGET *) chart); return GX_SUCCESS; }