summaryrefslogtreecommitdiff
path: root/src/T2DLL/CPieChartView.h
blob: 491b404d8bc1cf324f224c9f82e3d9c9baebd88f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef T2DLL_CPIECHARTVIEW_H
#define T2DLL_CPIECHARTVIEW_H
#include "../common.h"

class AFX_CLASS_EXPORT CPieChartView : public CWnd {
public:
    struct PieSlice {
        unsigned int value;
        COLORREF color;
    };

    struct Pie {
        unsigned int totalValue;
        unsigned int sliceCount;
        PieSlice *slices;
    };

	static CPieChartView* CreateCPieChartViewStream(T2Archive* inStream);
	CPieChartView(T2Archive* inStream);
	virtual ~CPieChartView();
	void DrawSelf();
	void CutPie(const Pie* inPie);

protected:
    int mTextTraits;
    int mBorderWidth;
    const Pie *mPie;
};
#endif