Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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

//========= 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