![]() |
AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
A basic XOML property. More...
#include <CzXoml.h>
Public Member Functions | |
CzXomlProperty () | |
CzXomlProperty (const char *data) | |
CzXomlProperty (float data) | |
CzXomlProperty (bool data) | |
CzXomlProperty (int data) | |
CzXomlProperty (const CzVec2 &data) | |
CzXomlProperty (const CzIVec2 &data) | |
CzXomlProperty (const CzVec3 &data) | |
CzXomlProperty (const CzVec4 &data) | |
CzXomlProperty (const CzColour &data) | |
CzXomlProperty (const CzRect &data) | |
CzXomlProperty (const CzIRect &data) | |
CzXomlProperty (IzXomlResource *data) | |
CzXomlProperty (CzXomlVariable *data) | |
CzXomlProperty (void *data) | |
~CzXomlProperty () | |
bool | setValue (const CzString &data, bool delta) |
Sets the value of the property from a string. | |
bool | setValue (const CzXomlProperty &prop, bool delta) |
Sets the value of the property from a property. | |
void | setToVariable (CzXomlVariable &var) |
Sets the property to a variable. | |
void | toString (CzString &string) const |
Static Public Member Functions | |
static CzXomlProperty * | createOfType (eCzXomlPropertyType type) |
Creates a property of the specified type. | |
static CzXomlProperty * | createOfType (const char *type_name) |
Creates a property of the specified named type. | |
Public Attributes | |
eCzXomlPropertyType | Type |
Type of property. | |
bool | OwnData |
union { | |
void * p_data | |
Value of property as string or object. | |
bool p_bool | |
Value of property as a bool. | |
float p_float | |
Value of property as a float. | |
int p_int | |
Value of property as an integer. | |
float p_vec [4] | |
Value of property as a vector. | |
}; | |
<If true then the property owns p_data |
A basic XOML property.
CzXomlProperty::CzXomlProperty | ( | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | const char * | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | float | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | bool | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | int | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | const CzVec2 & | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | const CzIVec2 & | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | const CzVec3 & | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | const CzVec4 & | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | const CzColour & | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | const CzRect & | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | const CzIRect & | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | IzXomlResource * | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | CzXomlVariable * | data | ) | [inline] |
CzXomlProperty::CzXomlProperty | ( | void * | data | ) | [inline] |
CzXomlProperty::~CzXomlProperty | ( | ) | [inline] |
CzXomlProperty * CzXomlProperty::createOfType | ( | eCzXomlPropertyType | type | ) | [static] |
Creates a property of the specified type.
type | The property type. |
CzXomlProperty * CzXomlProperty::createOfType | ( | const char * | type_name | ) | [static] |
Creates a property of the specified named type.
type | The property type. |
void CzXomlProperty::setToVariable | ( | CzXomlVariable & | var | ) |
Sets the property to a variable.
[out] | var | The target variable. |
bool CzXomlProperty::setValue | ( | const CzString & | data, |
bool | delta | ||
) |
Sets the value of the property from a string.
data | The data. |
delta | true to add to the property. |
bool CzXomlProperty::setValue | ( | const CzXomlProperty & | data, |
bool | delta | ||
) |
Sets the value of the property from a property.
data | The data. |
delta | true to add to the property. |
void CzXomlProperty::toString | ( | CzString & | string | ) | const |
union { ... } |
<If true then the property owns p_data
Value of property as a bool.
void* CzXomlProperty::p_data |
Value of property as string or object.
float CzXomlProperty::p_float |
Value of property as a float.
Value of property as an integer.
float CzXomlProperty::p_vec[4] |
Value of property as a vector.
Type of property.