MyGUI
3.2.1
|
00001 /* 00002 * This source file is part of MyGUI. For the latest info, see http://mygui.info/ 00003 * Distributed under the MIT License 00004 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) 00005 */ 00006 00007 #ifndef __MYGUI_SHARED_LAYER_NODE_H__ 00008 #define __MYGUI_SHARED_LAYER_NODE_H__ 00009 00010 #include "MyGUI_Prerequest.h" 00011 #include "MyGUI_LayerNode.h" 00012 00013 namespace MyGUI 00014 { 00015 00016 class MYGUI_EXPORT SharedLayerNode : 00017 public LayerNode 00018 { 00019 MYGUI_RTTI_DERIVED( SharedLayerNode ) 00020 00021 public: 00022 explicit SharedLayerNode(ILayer* _layer, ILayerNode* _parent = nullptr); 00023 virtual ~SharedLayerNode(); 00024 00025 void addUsing(); 00026 void removeUsing(); 00027 size_t countUsing() const; 00028 00029 private: 00030 size_t mCountUsing; 00031 }; 00032 00033 } // namespace MyGUI 00034 00035 #endif // __MYGUI_SHARED_LAYER_NODE_H__