MyGUI  3.2.1
MyGUI_ControllerItem.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_CONTROLLER_ITEM_H__
8 #define __MYGUI_CONTROLLER_ITEM_H__
9 
10 #include "MyGUI_Prerequest.h"
11 #include "MyGUI_WidgetDefines.h"
12 #include "MyGUI_IObject.h"
13 #include "MyGUI_Delegate.h"
14 #include "MyGUI_EventPair.h"
15 
16 namespace MyGUI
17 {
18 
20 
23 
26  public IObject
27  {
29 
30  public:
31  virtual ~ControllerItem() { }
32 
33  virtual void prepareItem(Widget* _widget) = 0;
34  virtual bool addTime(Widget* _widget, float _time) = 0;
35 
36  virtual void setProperty(const std::string& _key, const std::string& _value) { }
37 
43 
49 
55 
56  };
57 
58 } // namespace MyGUI
59 
60 #endif // __MYGUI_CONTROLLER_ITEM_H__