mCtrl  0.11.1
chart.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Martin Mitas
3  *
4  * This library is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 2.1 of the License, or
7  * (at your option) any later version.
8  *
9  * This library 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 Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; 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 
156 
164 BOOL MCTRL_API mcChart_Initialize(void);
165 
169 void MCTRL_API mcChart_Terminate(void);
170 
178 
180 #define MC_WC_CHARTW L"mCtrl.chart"
181 
182 #define MC_WC_CHARTA "mCtrl.chart"
183 
191 
193 #define MC_CHS_PIE 0x0000
194 
195 #define MC_CHS_SCATTER 0x0001
196 
197 #define MC_CHS_LINE 0x0002
198 
199 #define MC_CHS_STACKEDLINE 0x0003
200 
201 #define MC_CHS_AREA 0x0004
202 
203 #define MC_CHS_STACKEDAREA 0x0005
204 
205 #define MC_CHS_COLUMN 0x0006
206 
207 #define MC_CHS_STACKEDCOLUMN 0x0007
208 
209 #define MC_CHS_BAR 0x0008
210 
211 #define MC_CHS_STACKEDBAR 0x0009
212 
213 #define MC_CHS_TYPEMASK 0x003f
214 
224 #define MC_CHS_NOTOOLTIPS 0x0040
225 
231 #define MC_CHS_DOUBLEBUFFER 0x0080
232 
241 
252 #define MC_CHDIM_VALUES (1 << 0)
253 
261 
275 typedef struct MC_CHDATASET_tag {
277  DWORD dwCount;
279  int* piValues;
280 } MC_CHDATASET;
281 
285 typedef struct MC_NMCHDISPINFO_tag {
287  NMHDR hdr;
289  DWORD fMask;
291  int iDataSet;
297  int* piValues;
299 
307 
314 #define MC_CHM_GETDATASETCOUNT (MC_CHM_FIRST + 0)
315 
324 #define MC_CHM_DELETEALLDATASETS (MC_CHM_FIRST + 1)
325 
337 #define MC_CHM_INSERTDATASET (MC_CHM_FIRST + 2)
338 
345 #define MC_CHM_DELETEDATASET (MC_CHM_FIRST + 3)
346 
362 #define MC_CHM_GETDATASET (MC_CHM_FIRST + 4)
363 
375 #define MC_CHM_SETDATASET (MC_CHM_FIRST + 5)
376 
383 #define MC_CHM_GETDATASETCOLOR (MC_CHM_FIRST + 6)
384 
391 #define MC_CHM_SETDATASETCOLOR (MC_CHM_FIRST + 7)
392 
401 #define MC_CHM_GETDATASETLEGENDW (MC_CHM_FIRST + 8)
402 
411 #define MC_CHM_GETDATASETLEGENDA (MC_CHM_FIRST + 9)
412 
419 #define MC_CHM_SETDATASETLEGENDW (MC_CHM_FIRST + 10)
420 
427 #define MC_CHM_SETDATASETLEGENDA (MC_CHM_FIRST + 11)
428 
436 #define MC_CHM_GETFACTOREXPONENT (MC_CHM_FIRST + 12)
437 
446 #define MC_CHM_SETFACTOREXPONENT (MC_CHM_FIRST + 13)
447 
455 #define MC_CHM_GETAXISOFFSET (MC_CHM_FIRST + 14)
456 
464 #define MC_CHM_SETAXISOFFSET (MC_CHM_FIRST + 15)
465 
474 #define MC_CHM_SETTOOLTIPS (MC_CHM_FIRST + 16)
475 
483 #define MC_CHM_GETTOOLTIPS (MC_CHM_FIRST + 17)
484 
494 #define MC_CHM_GETAXISLEGENDW (MC_CHM_FIRST + 18)
495 
505 #define MC_CHM_GETAXISLEGENDA (MC_CHM_FIRST + 19)
506 
517 #define MC_CHM_SETAXISLEGENDW (MC_CHM_FIRST + 20)
518 
529 #define MC_CHM_SETAXISLEGENDA (MC_CHM_FIRST + 21)
530 
538 
552 #define MC_CHN_GETDISPINFO (MC_CHN_FIRST + 0)
553 
561 
563 #define MC_WC_CHART MCTRL_NAME_AW(MC_WC_CHART)
564 
565 #define MC_CHM_GETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_GETDATASETLEGEND)
566 
567 #define MC_CHM_SETDATASETLEGEND MCTRL_NAME_AW(MC_CHM_SETDATASETLEGEND)
568 
569 #define MC_CHM_GETAXISLEGEND MCTRL_NAME_AW(MC_CHM_GETAXISLEGEND)
570 
571 #define MC_CHM_SETAXISLEGEND MCTRL_NAME_AW(MC_CHM_SETAXISLEGEND)
572 
576 #ifdef __cplusplus
577 } /* extern "C" */
578 #endif
579 
580 #endif /* MCTRL_CHART_H */
int * piValues
Definition: chart.h:297
#define MCTRL_API
Definition: _defs.h:46
int * piValues
Definition: chart.h:279
Structure for notification MC_CHN_GETDISPINFO.
Definition: chart.h:285
int iValueFirst
Definition: chart.h:293
int iDataSet
Definition: chart.h:291
Structure for manipulating with a data set.
Definition: chart.h:275
void mcChart_Terminate(void)
int iValueLast
Definition: chart.h:295
NMHDR hdr
Definition: chart.h:287
BOOL mcChart_Initialize(void)
DWORD fMask
Definition: chart.h:289
DWORD dwCount
Definition: chart.h:277
Common definitions.
Common constants and types.