diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/itextmessage.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/itextmessage.h')
| -rw-r--r-- | game/client/itextmessage.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/game/client/itextmessage.h b/game/client/itextmessage.h new file mode 100644 index 0000000..6117d50 --- /dev/null +++ b/game/client/itextmessage.h @@ -0,0 +1,37 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// +#if !defined( ITEXTMESSAGE_H ) +#define ITEXTMESSAGE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "vgui/VGUI.h" +#include "fontabc.h" + +abstract_class ITextMessage +{ +public: + virtual void SetPosition( int x, int y ) = 0; + virtual void AddChar( int r, int g, int b, int a, wchar_t ch ) = 0; + + virtual void GetLength( int *wide, int *tall, const char *string ) = 0; + virtual int GetFontInfo( FONTABC *pABCs, vgui::HFont hFont ) = 0; + + virtual void SetFont( vgui::HFont hCustomFont ) = 0; + virtual void SetDefaultFont( void ) = 0; +}; + +extern ITextMessage *textmessage; + +#endif // ITEXTMESSAGE_H
\ No newline at end of file |