MyGUI_SharedLayerNode.cpp
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#include "MyGUI_Precompiled.h"
#include "MyGUI_SharedLayerNode.h"
namespace MyGUI
{
SharedLayerNode::SharedLayerNode(ILayer* _layer, ILayerNode* _parent) :
LayerNode(_layer, _parent)
{
}
void SharedLayerNode::addUsing()
{
mCountUsing++;
}
void SharedLayerNode::removeUsing()
{
mCountUsing--;
}
size_t SharedLayerNode::countUsing() const
{
return mCountUsing;
}
} // namespace MyGUI
MyGUI_Precompiled.h
MyGUI_SharedLayerNode.h
MyGUI::ILayer
Definition MyGUI_ILayer.h:22
MyGUI::ILayerNode
Definition MyGUI_ILayerNode.h:29
MyGUI::LayerNode::LayerNode
LayerNode(ILayer *_layer, ILayerNode *_parent=nullptr)
Definition MyGUI_LayerNode.cpp:17
MyGUI::SharedLayerNode::addUsing
void addUsing()
Definition MyGUI_SharedLayerNode.cpp:18
MyGUI::SharedLayerNode::removeUsing
void removeUsing()
Definition MyGUI_SharedLayerNode.cpp:23
MyGUI::SharedLayerNode::SharedLayerNode
SharedLayerNode(ILayer *_layer, ILayerNode *_parent=nullptr)
Definition MyGUI_SharedLayerNode.cpp:13
MyGUI::SharedLayerNode::countUsing
size_t countUsing() const
Definition MyGUI_SharedLayerNode.cpp:28
MyGUI
Definition MyGUI_ActionController.h:15