source-engine/game/client/vguicenterprint.h

47 lines
1.1 KiB
C
Raw Normal View History

2023-10-03 17:23:56 +03:00
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
2020-04-22 12:56:21 -04:00
//
// Purpose:
//
// $Workfile: $
// $Date: $
// $NoKeywords: $
//=============================================================================//
#if !defined( VGUICENTERPRINT_H )
#define VGUICENTERPRINT_H
#ifdef _WIN32
#pragma once
#endif
2023-10-03 17:23:56 +03:00
#include <vgui/vgui.h>
2020-04-22 12:56:21 -04:00
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
namespace vgui
{
class Panel;
}
class CCenterStringLabel;
2023-10-03 17:23:56 +03:00
class CCenterPrint
2020-04-22 12:56:21 -04:00
{
private:
CCenterStringLabel *vguiCenterString;
public:
CCenterPrint( void );
virtual void Create( vgui::VPANEL parent );
virtual void Destroy( void );
virtual void SetTextColor( int r, int g, int b, int a );
virtual void Print( char *text );
virtual void Print( wchar_t *text );
virtual void ColorPrint( int r, int g, int b, int a, char *text );
virtual void ColorPrint( int r, int g, int b, int a, wchar_t *text );
virtual void Clear( void );
};
2023-10-03 17:23:56 +03:00
extern CCenterPrint *GetCenterPrint();
2020-04-22 12:56:21 -04:00
#endif // VGUICENTERPRINT_H