Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.6 KiB

  1. //========= Copyright � 1996-2003, Valve LLC, All rights reserved. ============
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef MXLISTVIEW_H
  7. #define MXLISTVIEW_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #ifndef INCLUDED_MXWIDGET
  12. #include "mxtk/mxWidget.h"
  13. #endif
  14. #include <wchar.h>
  15. class mxWindow;
  16. class mxListView_i;
  17. class mxListView : public mxWidget
  18. {
  19. mxListView_i *d_this;
  20. public:
  21. // CREATORS
  22. mxListView (mxWindow *parent, int x, int y, int w, int h, int id = 0);
  23. virtual ~mxListView ();
  24. // MANIPULATORS
  25. int add( const char *label );
  26. void remove ( int item );
  27. void removeAll ();
  28. void setLabel ( int item, int column, const char *label);
  29. void setLabel( int item, int column, const wchar_t *label );
  30. void setUserData (int item, int column, void *userData);
  31. void setSelected ( int item, bool b);
  32. void deselectAll();
  33. void setImageList( void *himagelist );
  34. void setImage( int item, int column, int imagenormal );
  35. void insertTextColumn( int column, int width, char const *label );
  36. void insertImageColumn( int column, int width, int imageindex );
  37. void scrollToItem( int item );
  38. // ACCESSORS
  39. int getItemCount() const;
  40. int getNumSelected() const;
  41. int getNextSelectedItem ( int startitem = 0 ) const;
  42. const char *getLabel ( int oitem, int column ) const;
  43. void *getUserData (int item, int column ) const;
  44. bool isSelected ( int index ) const;
  45. void setDrawingEnabled( bool draw );
  46. private:
  47. // NOT IMPLEMENTED
  48. mxListView (const mxListView&);
  49. mxListView& operator= (const mxListView&);
  50. };
  51. #endif // MXLISTVIEW_H