This commit is contained in:
parent
efd1d32801
commit
120eb5baaf
14 changed files with 405 additions and 44 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue