MyGUI_ILayerNode.h
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)
*/
#ifndef MYGUI_I_LAYER_NODE_H_
#define MYGUI_I_LAYER_NODE_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_Enumerator.h"
#include "MyGUI_IObject.h"
#include "MyGUI_IRenderTarget.h"
#include "MyGUI_Types.h"
namespace MyGUI
{
class ILayer;
class ILayerItem;
class ILayerNode;
class RenderItem;
using VectorILayerNode = std::vector<ILayerNode*>;
using EnumeratorILayerNode = Enumerator<VectorILayerNode>;
class MYGUI_EXPORT ILayerNode : public IObject
{
MYGUI_RTTI_DERIVED(ILayerNode)
public:
// леер, которому мы принадлежим
virtual ILayer* getLayer() const = 0;
// возвращает отца или nullptr
virtual ILayerNode* getParent() const = 0;
virtual ILayerNode* createChildItemNode() = 0;
virtual void destroyChildItemNode(ILayerNode* _node) = 0;
// up child item (make it draw and pick above others)
virtual void upChildItemNode(ILayerNode* _item) = 0;
// child items list
virtual EnumeratorILayerNode getEnumerator() const = 0;
virtual size_t getLayerNodeCount() const = 0;
virtual ILayerNode* getLayerNodeAt(size_t _index) const = 0;
// добавляем айтем к ноду
virtual void attachLayerItem(ILayerItem* _item) = 0;
// удаляем айтем из нода
virtual void detachLayerItem(ILayerItem* _root) = 0;
// добавляет саб айтем и возвращает рендер айтем
virtual RenderItem* addToRenderItem(ITexture* _texture, bool _firstQueue, bool _separate) = 0;
// необходимо обновление нода
virtual void outOfDate(RenderItem* _item) = 0;
// возвращает виджет по позиции
virtual ILayerItem* getLayerItemByPoint(int _left, int _top) const = 0;
// рисует леер
virtual void renderToTarget(IRenderTarget* _target, bool _update) = 0;
virtual void resizeView(const IntSize& _viewSize) = 0;
virtual float getNodeDepth() const = 0;
};
} // namespace MyGUI
#endif // MYGUI_I_LAYER_NODE_H_
MyGUI_Enumerator.h
MyGUI_IObject.h
MyGUI_IRenderTarget.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
MyGUI_Types.h
MyGUI::Enumerator
Definition MyGUI_Enumerator.h:49
MyGUI::ILayer
Definition MyGUI_ILayer.h:22
MyGUI::ILayerItem
Definition MyGUI_ILayerItem.h:20
MyGUI::ILayerNode
Definition MyGUI_ILayerNode.h:29
MyGUI::ILayerNode::getLayerNodeAt
virtual ILayerNode * getLayerNodeAt(size_t _index) const =0
MyGUI::ILayerNode::getParent
virtual ILayerNode * getParent() const =0
MyGUI::ILayerNode::destroyChildItemNode
virtual void destroyChildItemNode(ILayerNode *_node)=0
MyGUI::ILayerNode::resizeView
virtual void resizeView(const IntSize &_viewSize)=0
MyGUI::ILayerNode::detachLayerItem
virtual void detachLayerItem(ILayerItem *_root)=0
MyGUI::ILayerNode::getLayerNodeCount
virtual size_t getLayerNodeCount() const =0
MyGUI::ILayerNode::getLayer
virtual ILayer * getLayer() const =0
MyGUI::ILayerNode::renderToTarget
virtual void renderToTarget(IRenderTarget *_target, bool _update)=0
MyGUI::ILayerNode::attachLayerItem
virtual void attachLayerItem(ILayerItem *_item)=0
MyGUI::ILayerNode::getEnumerator
virtual EnumeratorILayerNode getEnumerator() const =0
MyGUI::ILayerNode::getNodeDepth
virtual float getNodeDepth() const =0
MyGUI::ILayerNode::upChildItemNode
virtual void upChildItemNode(ILayerNode *_item)=0
MyGUI::ILayerNode::outOfDate
virtual void outOfDate(RenderItem *_item)=0
MyGUI::ILayerNode::getLayerItemByPoint
virtual ILayerItem * getLayerItemByPoint(int _left, int _top) const =0
MyGUI::ILayerNode::addToRenderItem
virtual RenderItem * addToRenderItem(ITexture *_texture, bool _firstQueue, bool _separate)=0
MyGUI::ILayerNode::createChildItemNode
virtual ILayerNode * createChildItemNode()=0
MyGUI::IObject
Definition MyGUI_IObject.h:17
MyGUI::IRenderTarget
Definition MyGUI_IRenderTarget.h:21
MyGUI::ITexture
Definition MyGUI_ITexture.h:28
MyGUI::RenderItem
Definition MyGUI_RenderItem.h:23
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::EnumeratorILayerNode
Enumerator< VectorILayerNode > EnumeratorILayerNode
Definition MyGUI_ILayerNode.h:26
MyGUI::VectorILayerNode
std::vector< ILayerNode * > VectorILayerNode
Definition MyGUI_ILayerNode.h:25
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30