summaryrefslogtreecommitdiff
path: root/src/T2DLL/CPieChartView.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/CPieChartView.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/CPieChartView.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/T2DLL/CPieChartView.h b/src/T2DLL/CPieChartView.h
index 8980203..0150e59 100644
--- a/src/T2DLL/CPieChartView.h
+++ b/src/T2DLL/CPieChartView.h
@@ -1,11 +1,27 @@
#pragma once
#include "common.h"
-class CPieChartView {
+class AFX_EXT_CLASS CPieChartView : public CWnd {
public:
- static CPieChartView* CreateCPieChartViewStream(T2Archive*);
- CPieChartView(T2Archive*);
+ 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 CPieChartView::Pie*);
+ void CutPie(const Pie* inPie);
+
+protected:
+ int mTextTraits;
+ int mBorderWidth;
+ const Pie *mPie;
};