MyGUI 3.4.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
13namespace MyGUI
14{
15
16 class IItem;
17
19 {
20 public:
21 virtual ~IItemContainer() { }
22
23 virtual size_t _getItemCount() const
24 {
25 return 0;
26 }
27
28 virtual void _addItem(const MyGUI::UString& _name) { }
29
30 virtual void _removeItemAt(size_t _index) { }
31
32 virtual Widget* _getItemAt(size_t _index) const
33 {
34 return nullptr;
35 }
36
37 virtual void _setItemNameAt(size_t _index, const UString& _name) { }
38 virtual const UString& _getItemNameAt(size_t _index) const
39 {
41 }
42
43 virtual void _setItemSelected(IItem* _item) { }
44 };
45
46} // namespace MyGUI
47
48#endif // MYGUI_I_ITEM_CONTAINER_H_
#define MYGUI_EXPORT
static const UString & getEmptyUString()
virtual void _setItemSelected(IItem *_item)
virtual size_t _getItemCount() const
virtual void _addItem(const MyGUI::UString &_name)
virtual void _removeItemAt(size_t _index)
virtual Widget * _getItemAt(size_t _index) const
virtual void _setItemNameAt(size_t _index, const UString &_name)
virtual const UString & _getItemNameAt(size_t _index) const
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
widget description should be here.
Definition: MyGUI_Widget.h:37