summaryrefslogtreecommitdiff
path: root/src/T2DLL/CPieChartView.h
blob: 6354cc7d2d363143946990985e940085646b2ee1 (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
#pragma once
#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;
};