MyGUI: MyGUI_SharedLayerNode.cpp Source File

MyGUI 3.4.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

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