ezEngine  Milestone 7
ezTypeWidgetAttribute Class Reference

Derive from this class if you want to define an attribute that replaces the property type widget. More...

#include <PropertyAttributes.h>

Inheritance diagram for ezTypeWidgetAttribute:

Private Member Functions

 EZ_ADD_DYNAMIC_REFLECTION (ezTypeWidgetAttribute)
 

Additional Inherited Members

- Public Member Functions inherited from ezReflectedClass
EZ_FORCE_INLINE bool IsInstanceOf (const ezRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
EZ_FORCE_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 
virtual void Serialize (ezArchiveWriter &stream) const
 This function is called to serialize the instance. More...
 
virtual void Deserialize (ezArchiveReader &stream)
 This function is called to deserialize the instance. More...
 
virtual void OnDeserialized ()
 This function is called after all objects are deserialized and thus all references to other objects are valid. More...
 
- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 

Detailed Description

Derive from this class if you want to define an attribute that replaces the property type widget.

Using this attribute affects both member properties as well as elements in a container but not the container widget. When creating a property widget, the property grid will look for an attribute of this type and use its type to look for a factory creator in ezRttiMappedObjectFactory<ezPropertyBaseWidget>. E.g. ezRttiMappedObjectFactory<ezPropertyBaseWidget>::RegisterCreator(ezGetStaticRTTI<ezFileBrowserAttribute>(), FileBrowserCreator); will replace the property widget for all properties that use ezFileBrowserAttribute.


The documentation for this class was generated from the following file: