xmake.repo/packages/n/noesis/latest/Include/NsGui/ContentPropertyMetaData.h
2024-12-22 19:15:02 +08:00

52 lines
1.5 KiB
C++

////////////////////////////////////////////////////////////////////////////////////////////////////
// NoesisGUI - http://www.noesisengine.com
// Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved.
////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef __GUI_CONTENTPROPERTYMETADATA_H__
#define __GUI_CONTENTPROPERTYMETADATA_H__
#include <NsCore/Noesis.h>
#include <NsCore/BaseComponent.h>
#include <NsCore/ReflectionDeclare.h>
#include <NsCore/TypeMetaData.h>
#include <NsCore/Symbol.h>
#include <NsGui/DependencySystemApi.h>
namespace Noesis
{
NS_WARNING_PUSH
NS_MSVC_WARNING_DISABLE(4251)
////////////////////////////////////////////////////////////////////////////////////////////////////
/// ContentPropertyMetaData. Stores information about the content property of an object
/// Note: A class can't have both ContentPropertyMetaData and DependsOnAttributeMetaData
////////////////////////////////////////////////////////////////////////////////////////////////////
class NS_GUI_DEPENDENCYSYSTEM_API ContentPropertyMetaData: public TypeMetaData
{
public:
/// Constructor
ContentPropertyMetaData(const char* propertyName);
/// Constructor
ContentPropertyMetaData(Symbol contentProperty);
/// Gets content property
Symbol GetContentProperty() const;
private:
Symbol mContentProperty;
NS_DECLARE_REFLECTION(ContentPropertyMetaData, TypeMetaData)
};
NS_WARNING_POP
}
#endif