MyGUI 3.5.3
MyGUI_SharedLayerNode.cpp
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#include "MyGUI_Precompiled.h"
9
10namespace MyGUI
11{
12
13 SharedLayerNode::SharedLayerNode(ILayer* _layer, ILayerNode* _parent) :
14 LayerNode(_layer, _parent)
15 {
16 }
17
18 void SharedLayerNode::addUsing()
19 {
20 mCountUsing++;
21 }
22
23 void SharedLayerNode::removeUsing()
24 {
25 mCountUsing--;
26 }
27
28 size_t SharedLayerNode::countUsing() const
29 {
30 return mCountUsing;
31 }
32
33} // namespace MyGUI