diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/vgui/IBorder.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/vgui/IBorder.h')
| -rw-r--r-- | sp/src/public/vgui/IBorder.h | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/sp/src/public/vgui/IBorder.h b/sp/src/public/vgui/IBorder.h index 1a4a15c4..e1237eb1 100644 --- a/sp/src/public/vgui/IBorder.h +++ b/sp/src/public/vgui/IBorder.h @@ -1,66 +1,66 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef IBORDER_H
-#define IBORDER_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <vgui/VGUI.h>
-
-class KeyValues;
-
-namespace vgui
-{
-
-class IScheme;
-
-//-----------------------------------------------------------------------------
-// Purpose: Interface to panel borders
-// Borders have a close relationship with panels
-// They are the edges of the panel.
-//-----------------------------------------------------------------------------
-class IBorder
-{
-public:
- IBorder() {}
- virtual ~IBorder() {}
-
- virtual void Paint(VPANEL panel) = 0;
- virtual void Paint(int x0, int y0, int x1, int y1) = 0;
- virtual void Paint(int x0, int y0, int x1, int y1, int breakSide, int breakStart, int breakStop) = 0;
- virtual void SetInset(int left, int top, int right, int bottom) = 0;
- virtual void GetInset(int &left, int &top, int &right, int &bottom) = 0;
- virtual void ApplySchemeSettings(IScheme *pScheme, KeyValues *inResourceData) = 0;
- virtual const char *GetName() = 0;
- virtual void SetName(const char *name) = 0;
-
- enum backgroundtype_e
- {
- BACKGROUND_FILLED,
- BACKGROUND_TEXTURED,
- BACKGROUND_ROUNDEDCORNERS,
- };
- virtual backgroundtype_e GetBackgroundType() = 0;
-
- enum sides_e
- {
- SIDE_LEFT = 0,
- SIDE_TOP = 1,
- SIDE_RIGHT = 2,
- SIDE_BOTTOM = 3
- };
-
- virtual bool PaintFirst( void ) = 0;
-};
-
-} // namespace vgui
-
-
-#endif // IBORDER_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef IBORDER_H +#define IBORDER_H + +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui/VGUI.h> + +class KeyValues; + +namespace vgui +{ + +class IScheme; + +//----------------------------------------------------------------------------- +// Purpose: Interface to panel borders +// Borders have a close relationship with panels +// They are the edges of the panel. +//----------------------------------------------------------------------------- +class IBorder +{ +public: + IBorder() {} + virtual ~IBorder() {} + + virtual void Paint(VPANEL panel) = 0; + virtual void Paint(int x0, int y0, int x1, int y1) = 0; + virtual void Paint(int x0, int y0, int x1, int y1, int breakSide, int breakStart, int breakStop) = 0; + virtual void SetInset(int left, int top, int right, int bottom) = 0; + virtual void GetInset(int &left, int &top, int &right, int &bottom) = 0; + virtual void ApplySchemeSettings(IScheme *pScheme, KeyValues *inResourceData) = 0; + virtual const char *GetName() = 0; + virtual void SetName(const char *name) = 0; + + enum backgroundtype_e + { + BACKGROUND_FILLED, + BACKGROUND_TEXTURED, + BACKGROUND_ROUNDEDCORNERS, + }; + virtual backgroundtype_e GetBackgroundType() = 0; + + enum sides_e + { + SIDE_LEFT = 0, + SIDE_TOP = 1, + SIDE_RIGHT = 2, + SIDE_BOTTOM = 3 + }; + + virtual bool PaintFirst( void ) = 0; +}; + +} // namespace vgui + + +#endif // IBORDER_H |