Counter Strike : Global Offensive Source Code
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.

49 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef URLLABEL_H
  8. #define URLLABEL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui/vgui.h>
  13. #include <vgui_controls/Label.h>
  14. namespace vgui
  15. {
  16. class URLLabel : public Label
  17. {
  18. DECLARE_CLASS_SIMPLE( URLLabel, Label );
  19. public:
  20. URLLabel(Panel *parent, const char *panelName, const char *text, const char *pszURL);
  21. URLLabel(Panel *parent, const char *panelName, const wchar_t *wszText, const char *pszURL);
  22. ~URLLabel();
  23. void SetURL(const char *pszURL);
  24. protected:
  25. virtual void OnMousePressed(MouseCode code);
  26. virtual void ApplySettings( KeyValues *inResourceData );
  27. virtual void GetSettings( KeyValues *outResourceData );
  28. virtual void ApplySchemeSettings(IScheme *pScheme);
  29. virtual const char *GetDescription( void );
  30. const char *GetURL( void ) { return m_pszURL; }
  31. private:
  32. char *m_pszURL;
  33. int m_iURLSize;
  34. bool m_bUnderline;
  35. };
  36. }
  37. #endif // URLLABEL_H