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.

33 lines
908 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ICLOSECAPTIONMANAGER_H
  8. #define ICLOSECAPTIONMANAGER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. typedef struct tagRECT RECT;
  13. class CSentence;
  14. class StudioModel;
  15. class CChoreoWidgetDrawHelper;
  16. class ICloseCaptionManager
  17. {
  18. public:
  19. virtual void Reset( void ) = 0;
  20. virtual void Process( char const *tokenname, float duration, int languageid ) = 0;
  21. virtual bool LookupUnicodeText( int languageId, char const *token, wchar_t *outbuf, size_t count ) = 0;
  22. // Same as above, except strips out <> command tokens
  23. virtual bool LookupStrippedUnicodeText( int languageId, char const *token, wchar_t *outbuf, size_t count ) = 0;
  24. };
  25. extern ICloseCaptionManager *closecaptionmanager;
  26. #endif // ICLOSECAPTIONMANAGER_H