aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/vgui/IClientPanel.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/vgui/IClientPanel.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/vgui/IClientPanel.h')
-rw-r--r--sp/src/public/vgui/IClientPanel.h188
1 files changed, 94 insertions, 94 deletions
diff --git a/sp/src/public/vgui/IClientPanel.h b/sp/src/public/vgui/IClientPanel.h
index 8fc147b7..ff964973 100644
--- a/sp/src/public/vgui/IClientPanel.h
+++ b/sp/src/public/vgui/IClientPanel.h
@@ -1,94 +1,94 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef ICLIENTPANEL_H
-#define ICLIENTPANEL_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <vgui/VGUI.h>
-
-#ifdef GetClassName
-#undef GetClassName
-#endif
-
-class KeyValues;
-
-namespace vgui
-{
-
-class Panel;
-class SurfaceBase;
-
-enum EInterfaceID
-{
- ICLIENTPANEL_STANDARD_INTERFACE = 0,
-};
-
-//-----------------------------------------------------------------------------
-// Purpose: Interface from vgui panels -> Client panels
-// This interface cannot be changed without rebuilding all vgui projects
-// Primarily this interface handles dispatching messages from core vgui to controls
-// The additional functions are all their for debugging or optimization reasons
-// To add to this later, use QueryInterface() to see if they support new interfaces
-//-----------------------------------------------------------------------------
-class IClientPanel
-{
-public:
- virtual VPANEL GetVPanel() = 0;
-
- // straight interface to Panel functions
- virtual void Think() = 0;
- virtual void PerformApplySchemeSettings() = 0;
- virtual void PaintTraverse(bool forceRepaint, bool allowForce) = 0;
- virtual void Repaint() = 0;
- virtual VPANEL IsWithinTraverse(int x, int y, bool traversePopups) = 0;
- virtual void GetInset(int &top, int &left, int &right, int &bottom) = 0;
- virtual void GetClipRect(int &x0, int &y0, int &x1, int &y1) = 0;
- virtual void OnChildAdded(VPANEL child) = 0;
- virtual void OnSizeChanged(int newWide, int newTall) = 0;
-
- virtual void InternalFocusChanged(bool lost) = 0;
- virtual bool RequestInfo(KeyValues *outputData) = 0;
- virtual void RequestFocus(int direction) = 0;
- virtual bool RequestFocusPrev(VPANEL existingPanel) = 0;
- virtual bool RequestFocusNext(VPANEL existingPanel) = 0;
- virtual void OnMessage(const KeyValues *params, VPANEL ifromPanel) = 0;
- virtual VPANEL GetCurrentKeyFocus() = 0;
- virtual int GetTabPosition() = 0;
-
- // for debugging purposes
- virtual const char *GetName() = 0;
- virtual const char *GetClassName() = 0;
-
- // get scheme handles from panels
- virtual HScheme GetScheme() = 0;
- // gets whether or not this panel should scale with screen resolution
- virtual bool IsProportional() = 0;
- // auto-deletion
- virtual bool IsAutoDeleteSet() = 0;
- // deletes this
- virtual void DeletePanel() = 0;
-
- // interfaces
- virtual void *QueryInterface(EInterfaceID id) = 0;
-
- // returns a pointer to the vgui controls baseclass Panel *
- virtual Panel *GetPanel() = 0;
-
- // returns the name of the module this panel is part of
- virtual const char *GetModuleName() = 0;
-
- virtual void OnTick() = 0;
-};
-
-} // namespace vgui
-
-
-#endif // ICLIENTPANEL_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef ICLIENTPANEL_H
+#define ICLIENTPANEL_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui/VGUI.h>
+
+#ifdef GetClassName
+#undef GetClassName
+#endif
+
+class KeyValues;
+
+namespace vgui
+{
+
+class Panel;
+class SurfaceBase;
+
+enum EInterfaceID
+{
+ ICLIENTPANEL_STANDARD_INTERFACE = 0,
+};
+
+//-----------------------------------------------------------------------------
+// Purpose: Interface from vgui panels -> Client panels
+// This interface cannot be changed without rebuilding all vgui projects
+// Primarily this interface handles dispatching messages from core vgui to controls
+// The additional functions are all their for debugging or optimization reasons
+// To add to this later, use QueryInterface() to see if they support new interfaces
+//-----------------------------------------------------------------------------
+class IClientPanel
+{
+public:
+ virtual VPANEL GetVPanel() = 0;
+
+ // straight interface to Panel functions
+ virtual void Think() = 0;
+ virtual void PerformApplySchemeSettings() = 0;
+ virtual void PaintTraverse(bool forceRepaint, bool allowForce) = 0;
+ virtual void Repaint() = 0;
+ virtual VPANEL IsWithinTraverse(int x, int y, bool traversePopups) = 0;
+ virtual void GetInset(int &top, int &left, int &right, int &bottom) = 0;
+ virtual void GetClipRect(int &x0, int &y0, int &x1, int &y1) = 0;
+ virtual void OnChildAdded(VPANEL child) = 0;
+ virtual void OnSizeChanged(int newWide, int newTall) = 0;
+
+ virtual void InternalFocusChanged(bool lost) = 0;
+ virtual bool RequestInfo(KeyValues *outputData) = 0;
+ virtual void RequestFocus(int direction) = 0;
+ virtual bool RequestFocusPrev(VPANEL existingPanel) = 0;
+ virtual bool RequestFocusNext(VPANEL existingPanel) = 0;
+ virtual void OnMessage(const KeyValues *params, VPANEL ifromPanel) = 0;
+ virtual VPANEL GetCurrentKeyFocus() = 0;
+ virtual int GetTabPosition() = 0;
+
+ // for debugging purposes
+ virtual const char *GetName() = 0;
+ virtual const char *GetClassName() = 0;
+
+ // get scheme handles from panels
+ virtual HScheme GetScheme() = 0;
+ // gets whether or not this panel should scale with screen resolution
+ virtual bool IsProportional() = 0;
+ // auto-deletion
+ virtual bool IsAutoDeleteSet() = 0;
+ // deletes this
+ virtual void DeletePanel() = 0;
+
+ // interfaces
+ virtual void *QueryInterface(EInterfaceID id) = 0;
+
+ // returns a pointer to the vgui controls baseclass Panel *
+ virtual Panel *GetPanel() = 0;
+
+ // returns the name of the module this panel is part of
+ virtual const char *GetModuleName() = 0;
+
+ virtual void OnTick() = 0;
+};
+
+} // namespace vgui
+
+
+#endif // ICLIENTPANEL_H