GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Used to describe a property shown in a property grid. More...
#include <PropertyDescriptor.h>
Inherited by gd::NamedPropertyDescriptor.
Public Member Functions | |
PropertyDescriptor (gd::String propertyValue) | |
Create a property being a simple gd::String with the specified value. More... | |
PropertyDescriptor () | |
Empty constructor creating an empty property to be displayed. | |
virtual | ~PropertyDescriptor () |
Destructor. | |
PropertyDescriptor & | SetValue (gd::String value) |
Change the value displayed in the property grid. | |
PropertyDescriptor & | SetType (gd::String type_) |
Change the type of the value displayed in the property grid. More... | |
PropertyDescriptor & | SetLabel (gd::String label_) |
Change the label displayed in the property grid. | |
PropertyDescriptor & | SetDescription (gd::String description_) |
Change the description displayed to the user, if any. | |
PropertyDescriptor & | SetGroup (gd::String group_) |
Change the group where this property is displayed to the user, if any. | |
PropertyDescriptor & | SetExtraInfo (const std::vector< gd::String > &info) |
Set and replace the additional information for the property. | |
PropertyDescriptor & | AddExtraInfo (const gd::String &info) |
Add an information about the property. More... | |
PropertyDescriptor & | SetMeasurementUnit (const gd::MeasurementUnit &measurementUnit_) |
Change the unit of measurement of the property value. | |
const gd::String & | GetValue () const |
const gd::String & | GetType () const |
const gd::String & | GetLabel () const |
const gd::String & | GetDescription () const |
const gd::String & | GetGroup () const |
const gd::MeasurementUnit & | GetMeasurementUnit () const |
const std::vector< gd::String > & | GetExtraInfo () const |
std::vector< gd::String > & | GetExtraInfo () |
PropertyDescriptor & | SetHidden (bool enable=true) |
Set if the property should be shown or hidden in the editor. | |
bool | IsHidden () const |
Check if the property should be shown or hidden in the editor. | |
PropertyDescriptor & | SetDeprecated (bool enable=true) |
Set if the property is deprecated. | |
bool | IsDeprecated () const |
Check if the property is deprecated. | |
PropertyDescriptor & | SetAdvanced (bool enable=true) |
Set if the property is marked as advanced. | |
bool | IsAdvanced () const |
Check if the property is marked as advanced. | |
bool | HasImpactOnOtherProperties () const |
Check if the property has impact on other properties - which means a change must re-render other properties. | |
PropertyDescriptor & | SetHasImpactOnOtherProperties (bool enable) |
Set if the property has impact on other properties - which means a change must re-render other properties. | |
QuickCustomization::Visibility | GetQuickCustomizationVisibility () const |
PropertyDescriptor & | SetQuickCustomizationVisibility (QuickCustomization::Visibility visibility) |
Serialization | |
virtual void | SerializeTo (SerializerElement &element) const |
Serialize the PropertyDescriptor. | |
virtual void | UnserializeFrom (const SerializerElement &element) |
Unserialize the PropertyDescriptor. | |
virtual void | SerializeValuesTo (SerializerElement &element) const |
Serialize only the value and extra informations. | |
virtual void | UnserializeValuesFrom (const SerializerElement &element) |
Unserialize only the value and extra informations. | |
Used to describe a property shown in a property grid.
|
inline |
Create a property being a simple gd::String with the specified value.
propertyValue | The value of the property. |
|
inline |
Add an information about the property.
|
inline |
Change the type of the value displayed in the property grid.