mCtrl  0.9.6
chart.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Martin Mitas
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef MCTRL_CHART_H
20 #define MCTRL_CHART_H
21 
22 #include <mCtrl/_defs.h>
23 #include <mCtrl/_common.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
145 
153 BOOL MCTRL_API mcChart_Initialize(void);
154 
158 void MCTRL_API mcChart_Terminate(void);
159 
167 
169 #define MC_WC_CHARTW L"mCtrl.chart"
170 
171 #define MC_WC_CHARTA "mCtrl.chart"
172 
180 
182 #define MC_CHS_PIE 0x0000
183 
184 #define MC_CHS_SCATTER 0x0001
185 
186 #define MC_CHS_LINE 0x0002
187 
188 #define MC_CHS_STACKEDLINE 0x0003
189 
190 #define MC_CHS_AREA 0x0004
191 
192 #define MC_CHS_STACKEDAREA 0x0005
193 
194 #define MC_CHS_COLUMN 0x0006
195 
196 #define MC_CHS_STACKEDCOLUMN 0x0007
197 
198 #define MC_CHS_BAR 0x0008
199 
200 #define MC_CHS_STACKEDBAR 0x0009
201 
202 #define MC_CHS_TYPEMASK 0x003f
203 
213 #define MC_CHS_NOTOOLTIPS 0x0040
214 
220 #define MC_CHS_DOUBLEBUFFER 0x0080
221 
230 
241 #define MC_CHDIM_VALUES (1 << 0)
242 
250 
264 typedef struct MC_CHDATASET_tag {
266  DWORD dwCount;
268  int* piValues;
269 } MC_CHDATASET;
270 
274 typedef struct MC_NMCHDISPINFO_tag {
276  NMHDR hdr;
278  DWORD fMask;
280  int iDataSet;
286  int* piValues;
288 
296 
303 #define MC_CHM_GETDATASETCOUNT (MC_CHM_FIRST + 0)
304 
313 #define MC_CHM_DELETEALLDATASETS (MC_CHM_FIRST + 1)
314 
325 #define MC_CHM_INSERTDATASET (MC_CHM_FIRST + 2)
326 
333 #define MC_CHM_DELETEDATASET (MC_CHM_FIRST + 3)
334 
350 #define MC_CHM_GETDATASET (MC_CHM_FIRST + 4)
351 
362 #define MC_CHM_SETDATASET (MC_CHM_FIRST + 5)
363 
370 #define MC_CHM_GETDATASETCOLOR (MC_CHM_FIRST + 6)
371 
378 #define MC_CHM_SETDATASETCOLOR (MC_CHM_FIRST + 7)
379 
383 #define MC_CHM_GETDATASETLEGENDW (MC_CHM_FIRST + 8)
384 
388 #define MC_CHM_GETDATASETLEGENDA (MC_CHM_FIRST + 9)
389 
396 #define MC_CHM_SETDATASETLEGENDW (MC_CHM_FIRST + 10)
397 
404 #define MC_CHM_SETDATASETLEGENDA (MC_CHM_FIRST + 11)
405 
413 #define MC_CHM_GETFACTOREXPONENT (MC_CHM_FIRST + 12)
414 
423 #define MC_CHM_SETFACTOREXPONENT (MC_CHM_FIRST + 13)
424 
432 #define MC_CHM_GETAXISOFFSET (MC_CHM_FIRST + 14)
433 
441 #define MC_CHM_SETAXISOFFSET (MC_CHM_FIRST + 15)
442 
451 #define MC_CHM_SETTOOLTIPS (MC_CHM_FIRST + 16)
452 
460 #define MC_CHM_GETTOOLTIPS (MC_CHM_FIRST + 17)
461 
465 #define MC_CHM_GETAXISLEGENDW (MC_CHM_FIRST + 18)
466 
470 #define MC_CHM_GETAXISLEGENDA (MC_CHM_FIRST + 19)
471 
482 #define MC_CHM_SETAXISLEGENDW (MC_CHM_FIRST + 20)
483 
494 #define MC_CHM_SETAXISLEGENDA (MC_CHM_FIRST + 21)
495 
503 
517 #define MC_CHN_GETDISPINFO (MC_CHN_FIRST + 0)
518 
526 
528 #define MC_WC_CHART MCTRL_NAME_AW(MC_WC_CHART)
529 
530 #define MC_CHM_GETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_GETDATASETLEGEND)
531 
532 #define MC_CHM_SETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_SETDATASETLEGEND)
533 
534 #define MC_CHM_GETAXISLEGEND MCTRL_NAME_AW(MC_CHM_GETAXISLEGEND)
535 
536 #define MC_CHM_SETAXISLEGEND MCTRL_NAME_AW(MC_CHM_SETAXISLEGEND)
537 
541 #ifdef __cplusplus
542 } /* extern "C" */
543 #endif
544 
545 #endif /* MCTRL_CHART_H */