blob: ef9da305cb6d5452ac1d6ea737f0e180adac16d2 (
plain) (
blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef VGUI_BUDGETBARGRAPHPANEL_H
#define VGUI_BUDGETBARGRAPHPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/Frame.h>
class CBaseBudgetPanel;
class CBudgetBarGraphPanel : public vgui::Panel
{
typedef vgui::Panel BaseClass;
public:
CBudgetBarGraphPanel( CBaseBudgetPanel *pParent, const char *pPanelName );
~CBudgetBarGraphPanel();
virtual void Paint( void );
private:
void DrawInstantaneous();
void DrawPeaks();
void DrawAverages();
void DrawTimeLines( void );
void GetBudgetGroupTopAndBottom( int id, int &top, int &bottom );
void DrawBarAtIndex( int id, float percent );
void DrawTickAtIndex( int id, float percent, int red, int green, int blue, int alpha );
private:
CBaseBudgetPanel *m_pBudgetPanel;
};
#endif // VGUI_BUDGETBARGRAPHPANEL_H
|