7 #ifndef MYGUI_LAYER_MANAGER_H_
8 #define MYGUI_LAYER_MANAGER_H_
41 void attachToLayerNode(
const std::string& _name,
Widget* _item);
45 void detachFromLayer(
Widget* _item);
50 void upLayerItem(
Widget* _item);
53 bool isExist(
const std::string& _name)
const;
55 EnumeratorLayer getEnumerator()
const;
58 ILayer* getByName(
const std::string& _name,
bool _throw =
true)
const;
60 size_t getLayerCount()
const;
62 ILayer* getLayer(
size_t _index);
65 Widget* getWidgetFromPoint(
int _left,
int _top);
70 void resizeView(
const IntSize& _viewSize);
72 const std::string& getCategoryName()
const;
76 void _unlinkWidget(
Widget* _widget);
80 void merge(VectorLayer& _layers);
81 void destroy(
ILayer* _layer);
84 VectorLayer mLayerNodes;
87 std::string mCategoryName;
92 #endif // MYGUI_LAYER_MANAGER_H_
std::vector< ILayer * > VectorLayer
Enumerator< VectorLayer > EnumeratorLayer