summaryrefslogtreecommitdiff
path: root/common/vgui/vgui_budgethistorypanel.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/vgui/vgui_budgethistorypanel.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/vgui/vgui_budgethistorypanel.h')
-rw-r--r--common/vgui/vgui_budgethistorypanel.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/common/vgui/vgui_budgethistorypanel.h b/common/vgui/vgui_budgethistorypanel.h
new file mode 100644
index 0000000..0436362
--- /dev/null
+++ b/common/vgui/vgui_budgethistorypanel.h
@@ -0,0 +1,48 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef VGUI_BudgetHistoryPanel_H
+#define VGUI_BudgetHistoryPanel_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/Frame.h>
+
+class CBaseBudgetPanel;
+
+class CBudgetHistoryPanel : public vgui::Panel
+{
+ typedef vgui::Panel BaseClass;
+
+public:
+ CBudgetHistoryPanel( CBaseBudgetPanel *pParent, const char *pPanelName );
+ ~CBudgetHistoryPanel();
+ void SetData( double *pData, int numCategories, int numItems, int offsetIntoData );
+ void SetRange( float fMin, float fMax );
+
+
+protected:
+
+ void Paint();
+
+private:
+
+ void DrawBudgetLine( float val );
+
+private:
+
+ CBaseBudgetPanel *m_pBudgetPanel;
+
+ double *m_pData;
+ int m_nGroups;
+ int m_nSamplesPerGroup;
+ int m_nSampleOffset;
+ float m_fRangeMin;
+ float m_fRangeMax;
+};
+
+#endif // VGUI_BudgetHistoryPanel_H