summaryrefslogtreecommitdiff
path: root/public/mxtk/mxlistview.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/mxtk/mxlistview.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/mxtk/mxlistview.h')
-rw-r--r--public/mxtk/mxlistview.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/public/mxtk/mxlistview.h b/public/mxtk/mxlistview.h
new file mode 100644
index 0000000..c622f5a
--- /dev/null
+++ b/public/mxtk/mxlistview.h
@@ -0,0 +1,66 @@
+//========= Copyright � 1996-2003, Valve LLC, All rights reserved. ============
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef MXLISTVIEW_H
+#define MXLISTVIEW_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#ifndef INCLUDED_MXWIDGET
+#include "mxtk/mxWidget.h"
+#endif
+
+#include <wchar.h>
+
+class mxWindow;
+
+class mxListView_i;
+class mxListView : public mxWidget
+{
+ mxListView_i *d_this;
+
+public:
+ // CREATORS
+ mxListView (mxWindow *parent, int x, int y, int w, int h, int id = 0);
+ virtual ~mxListView ();
+
+ // MANIPULATORS
+ int add( const char *label );
+ void remove ( int item );
+ void removeAll ();
+ void setLabel ( int item, int column, const char *label);
+ void setLabel( int item, int column, const wchar_t *label );
+
+ void setUserData (int item, int column, void *userData);
+ void setSelected ( int item, bool b);
+ void deselectAll();
+ void setImageList( void *himagelist );
+ void setImage( int item, int column, int imagenormal );
+
+ void insertTextColumn( int column, int width, char const *label );
+ void insertImageColumn( int column, int width, int imageindex );
+
+ void scrollToItem( int item );
+
+ // ACCESSORS
+ int getItemCount() const;
+ int getNumSelected() const;
+ int getNextSelectedItem ( int startitem = 0 ) const;
+ const char *getLabel ( int oitem, int column ) const;
+ void *getUserData (int item, int column ) const;
+ bool isSelected ( int index ) const;
+
+ void setDrawingEnabled( bool draw );
+
+
+private:
+ // NOT IMPLEMENTED
+ mxListView (const mxListView&);
+ mxListView& operator= (const mxListView&);
+};
+
+#endif // MXLISTVIEW_H