MyGUI  3.2.1
MyGUI_IItemContainer.h
Go to the documentation of this file.
1 /*
2  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3  * Distributed under the MIT License
4  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5  */
6 
7 #ifndef __MYGUI_I_ITEM_CONTAINER_H__
8 #define __MYGUI_I_ITEM_CONTAINER_H__
9 
10 #include "MyGUI_Prerequest.h"
11 #include "MyGUI_Constants.h"
12 
13 namespace MyGUI
14 {
15 
16  class IItem;
17 
19  {
20  public:
22  virtual ~IItemContainer() { }
23 
24  virtual size_t _getItemCount()
25  {
26  return 0;
27  }
28 
29  virtual void _addItem(const MyGUI::UString& _name) { }
30 
31  virtual void _removeItemAt(size_t _index) { }
32 
33  virtual Widget* _getItemAt(size_t _index)
34  {
35  return nullptr;
36  }
37 
38  virtual void _setItemNameAt(size_t _index, const UString& _name) { }
39  virtual const UString& _getItemNameAt(size_t _index)
40  {
42  }
43 
44  virtual void _setItemSelected(IItem* _item) { }
45  };
46 
47 } // namespace MyGUI
48 
49 #endif // __MYGUI_I_ITEM_CONTAINER_H__