mCtrl  0.10.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 #include <mCtrl/_common.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
159 
167 BOOL MCTRL_API mcChart_Initialize(void);
168 
172 void MCTRL_API mcChart_Terminate(void);
173 
181 
183 #define MC_WC_CHARTW L"mCtrl.chart"
184 
185 #define MC_WC_CHARTA "mCtrl.chart"
186 
194 
196 #define MC_CHS_PIE 0x0000
197 
198 #define MC_CHS_SCATTER 0x0001
199 
200 #define MC_CHS_LINE 0x0002
201 
202 #define MC_CHS_STACKEDLINE 0x0003
203 
204 #define MC_CHS_AREA 0x0004
205 
206 #define MC_CHS_STACKEDAREA 0x0005
207 
208 #define MC_CHS_COLUMN 0x0006
209 
210 #define MC_CHS_STACKEDCOLUMN 0x0007
211 
212 #define MC_CHS_BAR 0x0008
213 
214 #define MC_CHS_STACKEDBAR 0x0009
215 
216 #define MC_CHS_TYPEMASK 0x003f
217 
227 #define MC_CHS_NOTOOLTIPS 0x0040
228 
234 #define MC_CHS_DOUBLEBUFFER 0x0080
235 
244 
255 #define MC_CHDIM_VALUES (1 << 0)
256 
264 
278 typedef struct MC_CHDATASET_tag {
280  DWORD dwCount;
282  int* piValues;
283 } MC_CHDATASET;
284 
288 typedef struct MC_NMCHDISPINFO_tag {
290  NMHDR hdr;
292  DWORD fMask;
294  int iDataSet;
300  int* piValues;
302 
310 
317 #define MC_CHM_GETDATASETCOUNT (MC_CHM_FIRST + 0)
318 
327 #define MC_CHM_DELETEALLDATASETS (MC_CHM_FIRST + 1)
328 
340 #define MC_CHM_INSERTDATASET (MC_CHM_FIRST + 2)
341 
348 #define MC_CHM_DELETEDATASET (MC_CHM_FIRST + 3)
349 
365 #define MC_CHM_GETDATASET (MC_CHM_FIRST + 4)
366 
378 #define MC_CHM_SETDATASET (MC_CHM_FIRST + 5)
379 
386 #define MC_CHM_GETDATASETCOLOR (MC_CHM_FIRST + 6)
387 
394 #define MC_CHM_SETDATASETCOLOR (MC_CHM_FIRST + 7)
395 
404 #define MC_CHM_GETDATASETLEGENDW (MC_CHM_FIRST + 8)
405 
414 #define MC_CHM_GETDATASETLEGENDA (MC_CHM_FIRST + 9)
415 
422 #define MC_CHM_SETDATASETLEGENDW (MC_CHM_FIRST + 10)
423 
430 #define MC_CHM_SETDATASETLEGENDA (MC_CHM_FIRST + 11)
431 
439 #define MC_CHM_GETFACTOREXPONENT (MC_CHM_FIRST + 12)
440 
449 #define MC_CHM_SETFACTOREXPONENT (MC_CHM_FIRST + 13)
450 
458 #define MC_CHM_GETAXISOFFSET (MC_CHM_FIRST + 14)
459 
467 #define MC_CHM_SETAXISOFFSET (MC_CHM_FIRST + 15)
468 
477 #define MC_CHM_SETTOOLTIPS (MC_CHM_FIRST + 16)
478 
486 #define MC_CHM_GETTOOLTIPS (MC_CHM_FIRST + 17)
487 
497 #define MC_CHM_GETAXISLEGENDW (MC_CHM_FIRST + 18)
498 
508 #define MC_CHM_GETAXISLEGENDA (MC_CHM_FIRST + 19)
509 
520 #define MC_CHM_SETAXISLEGENDW (MC_CHM_FIRST + 20)
521 
532 #define MC_CHM_SETAXISLEGENDA (MC_CHM_FIRST + 21)
533 
541 
555 #define MC_CHN_GETDISPINFO (MC_CHN_FIRST + 0)
556 
564 
566 #define MC_WC_CHART MCTRL_NAME_AW(MC_WC_CHART)
567 
568 #define MC_CHM_GETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_GETDATASETLEGEND)
569 
570 #define MC_CHM_SETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_SETDATASETLEGEND)
571 
572 #define MC_CHM_GETAXISLEGEND MCTRL_NAME_AW(MC_CHM_GETAXISLEGEND)
573 
574 #define MC_CHM_SETAXISLEGEND MCTRL_NAME_AW(MC_CHM_SETAXISLEGEND)
575 
579 #ifdef __cplusplus
580 } /* extern "C" */
581 #endif
582 
583 #endif /* MCTRL_CHART_H */
int * piValues
Definition: chart.h:300
#define MCTRL_API
Definition: _defs.h:46
int * piValues
Definition: chart.h:282
Structure for notification MC_CHN_GETDISPINFO.
Definition: chart.h:288
int iValueFirst
Definition: chart.h:296
int iDataSet
Definition: chart.h:294
Structure for manipulating with a data set.
Definition: chart.h:278
void mcChart_Terminate(void)
int iValueLast
Definition: chart.h:298
NMHDR hdr
Definition: chart.h:290
BOOL mcChart_Initialize(void)
DWORD fMask
Definition: chart.h:292
DWORD dwCount
Definition: chart.h:280
Common definitions.
Common constants and types.