mCtrl  0.9.7
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 
326 #define MC_CHM_INSERTDATASET (MC_CHM_FIRST + 2)
327 
334 #define MC_CHM_DELETEDATASET (MC_CHM_FIRST + 3)
335 
351 #define MC_CHM_GETDATASET (MC_CHM_FIRST + 4)
352 
364 #define MC_CHM_SETDATASET (MC_CHM_FIRST + 5)
365 
372 #define MC_CHM_GETDATASETCOLOR (MC_CHM_FIRST + 6)
373 
380 #define MC_CHM_SETDATASETCOLOR (MC_CHM_FIRST + 7)
381 
385 #define MC_CHM_GETDATASETLEGENDW (MC_CHM_FIRST + 8)
386 
390 #define MC_CHM_GETDATASETLEGENDA (MC_CHM_FIRST + 9)
391 
398 #define MC_CHM_SETDATASETLEGENDW (MC_CHM_FIRST + 10)
399 
406 #define MC_CHM_SETDATASETLEGENDA (MC_CHM_FIRST + 11)
407 
415 #define MC_CHM_GETFACTOREXPONENT (MC_CHM_FIRST + 12)
416 
425 #define MC_CHM_SETFACTOREXPONENT (MC_CHM_FIRST + 13)
426 
434 #define MC_CHM_GETAXISOFFSET (MC_CHM_FIRST + 14)
435 
443 #define MC_CHM_SETAXISOFFSET (MC_CHM_FIRST + 15)
444 
453 #define MC_CHM_SETTOOLTIPS (MC_CHM_FIRST + 16)
454 
462 #define MC_CHM_GETTOOLTIPS (MC_CHM_FIRST + 17)
463 
467 #define MC_CHM_GETAXISLEGENDW (MC_CHM_FIRST + 18)
468 
472 #define MC_CHM_GETAXISLEGENDA (MC_CHM_FIRST + 19)
473 
484 #define MC_CHM_SETAXISLEGENDW (MC_CHM_FIRST + 20)
485 
496 #define MC_CHM_SETAXISLEGENDA (MC_CHM_FIRST + 21)
497 
505 
519 #define MC_CHN_GETDISPINFO (MC_CHN_FIRST + 0)
520 
528 
530 #define MC_WC_CHART MCTRL_NAME_AW(MC_WC_CHART)
531 
532 #define MC_CHM_GETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_GETDATASETLEGEND)
533 
534 #define MC_CHM_SETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_SETDATASETLEGEND)
535 
536 #define MC_CHM_GETAXISLEGEND MCTRL_NAME_AW(MC_CHM_GETAXISLEGEND)
537 
538 #define MC_CHM_SETAXISLEGEND MCTRL_NAME_AW(MC_CHM_SETAXISLEGEND)
539 
543 #ifdef __cplusplus
544 } /* extern "C" */
545 #endif
546 
547 #endif /* MCTRL_CHART_H */
int * piValues
Definition: chart.h:286
#define MCTRL_API
Definition: _defs.h:46
int * piValues
Definition: chart.h:268
Structure for notification MC_CHN_GETDISPINFO.
Definition: chart.h:274
int iValueFirst
Definition: chart.h:282
int iDataSet
Definition: chart.h:280
Structure for manipulating with a data set.
Definition: chart.h:264
void mcChart_Terminate(void)
int iValueLast
Definition: chart.h:284
NMHDR hdr
Definition: chart.h:276
BOOL mcChart_Initialize(void)
DWORD fMask
Definition: chart.h:278
DWORD dwCount
Definition: chart.h:266
Common definitions.
Common constants and types.