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.

36 lines
930 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #if !defined( ITEXTMESSAGE_H )
  14. #define ITEXTMESSAGE_H
  15. #ifdef _WIN32
  16. #pragma once
  17. #endif
  18. #include "vgui/VGUI.h"
  19. #include "fontabc.h"
  20. abstract_class ITextMessage
  21. {
  22. public:
  23. virtual void SetPosition( int x, int y ) = 0;
  24. virtual void AddChar( int r, int g, int b, int a, wchar_t ch ) = 0;
  25. virtual void GetLength( int *wide, int *tall, const char *string ) = 0;
  26. virtual int GetFontInfo( FONTABC *pABCs, vgui::HFont hFont ) = 0;
  27. virtual void SetFont( vgui::HFont hCustomFont ) = 0;
  28. virtual void SetDefaultFont( void ) = 0;
  29. };
  30. extern ITextMessage *textmessage;
  31. #endif // ITEXTMESSAGE_H