42 lines
1.3 KiB
C++
42 lines
1.3 KiB
C++
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// NoesisGUI - http://www.noesisengine.com
|
|
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#ifndef __GUI_LAYERMANAGER_H__
|
|
#define __GUI_LAYERMANAGER_H__
|
|
|
|
|
|
#include <NsCore/Noesis.h>
|
|
#include <NsGui/CoreApi.h>
|
|
#include <NsCore/Ptr.h>
|
|
|
|
|
|
namespace Noesis
|
|
{
|
|
|
|
NS_INTERFACE ILayerManager;
|
|
class Visual;
|
|
|
|
namespace LayerManager
|
|
{
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
/// Finds the nearest layer manager upwards in the tree beginning at the specified element.
|
|
/// Returns null when no layer manager is found.
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
NS_GUI_CORE_API ILayerManager* FindLayer(Visual* visual);
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
/// Finds the root layer manager in the tree where the specified element is connected.
|
|
/// Returns null when no layer manager is found.
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
NS_GUI_CORE_API ILayerManager* FindRootLayer(Visual* visual);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|