mCtrl  0.9.0
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 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
144 
152 BOOL MCTRL_API mcChart_Initialize(void);
153 
157 void MCTRL_API mcChart_Terminate(void);
158 
166 
168 #define MC_WC_CHARTW L"mCtrl.chart"
169 
170 #define MC_WC_CHARTA "mCtrl.chart"
171 
179 
181 #define MC_CHS_PIE 0x0000
182 
183 #define MC_CHS_SCATTER 0x0001
184 
185 #define MC_CHS_LINE 0x0002
186 
187 #define MC_CHS_STACKEDLINE 0x0003
188 
189 #define MC_CHS_AREA 0x0004
190 
191 #define MC_CHS_STACKEDAREA 0x0005
192 
193 #define MC_CHS_COLUMN 0x0006
194 
195 #define MC_CHS_STACKEDCOLUMN 0x0007
196 
197 #define MC_CHS_BAR 0x0008
198 
199 #define MC_CHS_STACKEDBAR 0x0009
200 
201 #define MC_CHS_TYPEMASK 0x003f
202 
212 #define MC_CHS_NOTOOLTIPS 0x0040
213 
219 #define MC_CHS_DOUBLEBUFFER 0x0080
220 
229 
240 #define MC_CHDIM_VALUES (1 << 0)
241 
249 
263 typedef struct MC_CHDATASET_tag {
265  DWORD dwCount;
267  int* piValues;
268 } MC_CHDATASET;
269 
273 typedef struct MC_NMCHDISPINFO_tag {
275  NMHDR hdr;
277  DWORD fMask;
279  int iDataSet;
285  int* piValues;
287 
295 
302 #define MC_CHM_GETDATASETCOUNT (MC_CHM_FIRST + 0)
303 
312 #define MC_CHM_DELETEALLDATASETS (MC_CHM_FIRST + 1)
313 
324 #define MC_CHM_INSERTDATASET (MC_CHM_FIRST + 2)
325 
332 #define MC_CHM_DELETEDATASET (MC_CHM_FIRST + 3)
333 
349 #define MC_CHM_GETDATASET (MC_CHM_FIRST + 4)
350 
361 #define MC_CHM_SETDATASET (MC_CHM_FIRST + 5)
362 
369 #define MC_CHM_GETDATASETCOLOR (MC_CHM_FIRST + 6)
370 
377 #define MC_CHM_SETDATASETCOLOR (MC_CHM_FIRST + 7)
378 
382 #define MC_CHM_GETDATASETLEGENDW (MC_CHM_FIRST + 8)
383 
387 #define MC_CHM_GETDATASETLEGENDA (MC_CHM_FIRST + 9)
388 
395 #define MC_CHM_SETDATASETLEGENDW (MC_CHM_FIRST + 10)
396 
403 #define MC_CHM_SETDATASETLEGENDA (MC_CHM_FIRST + 11)
404 
412 #define MC_CHM_GETFACTOREXPONENT (MC_CHM_FIRST + 12)
413 
422 #define MC_CHM_SETFACTOREXPONENT (MC_CHM_FIRST + 13)
423 
431 #define MC_CHM_GETAXISOFFSET (MC_CHM_FIRST + 14)
432 
440 #define MC_CHM_SETAXISOFFSET (MC_CHM_FIRST + 15)
441 
450 #define MC_CHM_SETTOOLTIPS (MC_CHM_FIRST + 16)
451 
459 #define MC_CHM_GETTOOLTIPS (MC_CHM_FIRST + 17)
460 
468 
482 #define MC_CHN_GETDISPINFO (MC_CHN_FIRST + 0)
483 
491 
493 #define MC_WC_CHART MCTRL_NAME_AW(MC_WC_CHART)
494 
495 #define MC_CHM_GETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_GETDATASETLEGEND)
496 
497 #define MC_CHM_SETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_SETDATASETLEGEND)
498 
502 #ifdef __cplusplus
503 } /* extern "C" */
504 #endif
505 
506 #endif /* MCTRL_CHART_H */