bar chart
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-09-14 01:09:57 +09:00
commit 120eb5baaf
14 changed files with 405 additions and 44 deletions

View file

@ -17,6 +17,39 @@ extern "C" {
*/
MWDECL MwClass MwChartClass;
/*!
* @brief Adds the entry to the chart
* @param handle Widget
* @param index Index
* @param text Text
* @param value Value
* @return Index
*/
MwInline int MwChartAdd(MwWidget handle, int index, const char* text, double value, const char* color) {
int out;
MwVaWidgetExecute(handle, "mwChartAdd", (void*)&out, index, text, value, color);
return out;
}
/*!
* @brief Deletes item from the chart
* @param handle Widget
* @param index Index
*/
MwInline void MwChartDelete(MwWidget handle, int index) {
MwVaWidgetExecute(handle, "mwChartDelete", NULL, index);
}
/*!
* @brief Resets the chart
* @param handle Widget
*/
MwInline void MwChartReset(MwWidget handle) {
MwVaWidgetExecute(handle, "mwChartReset", NULL);
}
#ifdef __cplusplus
}
#endif