aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/vgui_controls/URLLabel.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/public/vgui_controls/URLLabel.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/public/vgui_controls/URLLabel.h')
-rw-r--r--mp/src/public/vgui_controls/URLLabel.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/mp/src/public/vgui_controls/URLLabel.h b/mp/src/public/vgui_controls/URLLabel.h
new file mode 100644
index 00000000..3421b3d2
--- /dev/null
+++ b/mp/src/public/vgui_controls/URLLabel.h
@@ -0,0 +1,49 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef URLLABEL_H
+#define URLLABEL_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui/VGUI.h>
+#include <vgui_controls/Label.h>
+
+namespace vgui
+{
+
+class URLLabel : public Label
+{
+ DECLARE_CLASS_SIMPLE( URLLabel, Label );
+
+public:
+ URLLabel(Panel *parent, const char *panelName, const char *text, const char *pszURL);
+ URLLabel(Panel *parent, const char *panelName, const wchar_t *wszText, const char *pszURL);
+ ~URLLabel();
+
+ void SetURL(const char *pszURL);
+
+protected:
+ virtual void OnMousePressed(MouseCode code);
+ virtual void ApplySettings( KeyValues *inResourceData );
+ virtual void GetSettings( KeyValues *outResourceData );
+ virtual void ApplySchemeSettings(IScheme *pScheme);
+ virtual const char *GetDescription( void );
+
+ const char *GetURL( void ) { return m_pszURL; }
+
+private:
+ char *m_pszURL;
+ int m_iURLSize;
+ bool m_bUnderline;
+};
+
+}
+
+#endif // URLLABEL_H