aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/vgui_controls/ImageList.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 /mp/src/public/vgui_controls/ImageList.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 'mp/src/public/vgui_controls/ImageList.h')
-rw-r--r--mp/src/public/vgui_controls/ImageList.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/mp/src/public/vgui_controls/ImageList.h b/mp/src/public/vgui_controls/ImageList.h
index 6e8e2223..db9ec638 100644
--- a/mp/src/public/vgui_controls/ImageList.h
+++ b/mp/src/public/vgui_controls/ImageList.h
@@ -1,56 +1,56 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef IMAGELIST_H
-#define IMAGELIST_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <utlvector.h>
-#include <vgui/VGUI.h>
-#include <vgui/IImage.h>
-
-namespace vgui
-{
-
-//-----------------------------------------------------------------------------
-// Purpose: holds a collection of images
-// used by controls so that images can be refered to by indices
-//-----------------------------------------------------------------------------
-class ImageList
-{
-public:
- ImageList(bool deleteImagesWhenDone);
- ~ImageList();
-
- // adds a new image to the list, returning the index it was placed at
- int AddImage(vgui::IImage *image);
-
- // returns the number of images
- int GetImageCount();
-
- // returns true if an index is valid
- bool IsValidIndex(int imageIndex);
-
- // sets an image at a specified index, growing and adding NULL images if necessary
- void SetImageAtIndex(int index, vgui::IImage *image);
-
- // gets an image, imageIndex is of range [0, GetImageCount)
- // image index 0 is always the blank image
- vgui::IImage *GetImage(int imageIndex);
-
-private:
- CUtlVector<vgui::IImage *> m_Images;
- bool m_bDeleteImagesWhenDone;
-};
-
-
-} // namespace vgui
-
-#endif // IMAGELIST_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef IMAGELIST_H
+#define IMAGELIST_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <utlvector.h>
+#include <vgui/VGUI.h>
+#include <vgui/IImage.h>
+
+namespace vgui
+{
+
+//-----------------------------------------------------------------------------
+// Purpose: holds a collection of images
+// used by controls so that images can be refered to by indices
+//-----------------------------------------------------------------------------
+class ImageList
+{
+public:
+ ImageList(bool deleteImagesWhenDone);
+ ~ImageList();
+
+ // adds a new image to the list, returning the index it was placed at
+ int AddImage(vgui::IImage *image);
+
+ // returns the number of images
+ int GetImageCount();
+
+ // returns true if an index is valid
+ bool IsValidIndex(int imageIndex);
+
+ // sets an image at a specified index, growing and adding NULL images if necessary
+ void SetImageAtIndex(int index, vgui::IImage *image);
+
+ // gets an image, imageIndex is of range [0, GetImageCount)
+ // image index 0 is always the blank image
+ vgui::IImage *GetImage(int imageIndex);
+
+private:
+ CUtlVector<vgui::IImage *> m_Images;
+ bool m_bDeleteImagesWhenDone;
+};
+
+
+} // namespace vgui
+
+#endif // IMAGELIST_H