Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
942 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef VGUI_BudgetHistoryPanel_H
  7. #define VGUI_BudgetHistoryPanel_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <vgui_controls/Frame.h>
  12. class CBaseBudgetPanel;
  13. class CBudgetHistoryPanel : public vgui::Panel
  14. {
  15. typedef vgui::Panel BaseClass;
  16. public:
  17. CBudgetHistoryPanel( CBaseBudgetPanel *pParent, const char *pPanelName );
  18. ~CBudgetHistoryPanel();
  19. void SetData( double *pData, int numCategories, int numItems, int offsetIntoData );
  20. void SetRange( float fMin, float fMax );
  21. protected:
  22. void Paint();
  23. private:
  24. void DrawBudgetLine( float val );
  25. private:
  26. CBaseBudgetPanel *m_pBudgetPanel;
  27. double *m_pData;
  28. int m_nGroups;
  29. int m_nSamplesPerGroup;
  30. int m_nSampleOffset;
  31. float m_fRangeMin;
  32. float m_fRangeMax;
  33. };
  34. #endif // VGUI_BudgetHistoryPanel_H