DOtherSide
0.7.1
C language library for creating bindings for the Qt QML language
|
Functions related to the QVariant class. More...
Functions | |
DOS_API void | dos_qvariantarray_delete (DosQVariantArray *ptr) |
Delete a DosQVariantArray. | |
DOS_API DosQVariant * | dos_qvariant_create (void) |
Create a new QVariant (null) More... | |
DOS_API DosQVariant * | dos_qvariant_create_int (int value) |
Create a new QVariant holding an int value. More... | |
DOS_API DosQVariant * | dos_qvariant_create_bool (bool value) |
Create a new QVariant holding a bool value. More... | |
DOS_API DosQVariant * | dos_qvariant_create_string (const char *value) |
Create a new QVariant holding a string value. More... | |
DOS_API DosQVariant * | dos_qvariant_create_qobject (DosQObject *value) |
Create a new QVariant holding a QObject value. More... | |
DOS_API DosQVariant * | dos_qvariant_create_qvariant (const DosQVariant *value) |
Create a new QVariant with the same value of the one given as argument. More... | |
DOS_API DosQVariant * | dos_qvariant_create_float (float value) |
Create a new QVariant holding a float value. More... | |
DOS_API DosQVariant * | dos_qvariant_create_double (double value) |
Create a new QVariant holding a double value. More... | |
DOS_API DosQVariant * | dos_qvariant_create_array (int size, DosQVariant **array) |
Create a new QVariant holding a QVariantList. More... | |
DOS_API void | dos_qvariant_setInt (DosQVariant *vptr, int value) |
Calls the QVariant::setValue<int>() function. More... | |
DOS_API void | dos_qvariant_setBool (DosQVariant *vptr, bool value) |
Calls the QVariant::setValue<bool>() function. More... | |
DOS_API void | dos_qvariant_setFloat (DosQVariant *vptr, float value) |
Calls the QVariant::setValue<float>() function. More... | |
DOS_API void | dos_qvariant_setDouble (DosQVariant *vptr, double value) |
Calls the QVariant::setValue<double>() function. More... | |
DOS_API void | dos_qvariant_setString (DosQVariant *vptr, const char *value) |
Calls the QVariant::setValue<QString>() function. More... | |
DOS_API void | dos_qvariant_setQObject (DosQVariant *vptr, DosQObject *value) |
Calls the QVariant::setValue<QObject*>() function. More... | |
DOS_API void | dos_qvariant_setArray (DosQVariant *vptr, int size, DosQVariant **array) |
Calls the QVariant::setValue<QVariantList>() function. More... | |
DOS_API bool | dos_qvariant_isnull (const DosQVariant *vptr) |
Calls the QVariant::isNull function. More... | |
DOS_API void | dos_qvariant_delete (DosQVariant *vptr) |
Free the memory allocated for the given QVariant. More... | |
DOS_API void | dos_qvariant_assign (DosQVariant *vptr, const DosQVariant *other) |
Calls the QVariant::operator=(const QVariant&) function. More... | |
DOS_API int | dos_qvariant_toInt (const DosQVariant *vptr) |
Calls the QVariant::value<int>() function. More... | |
DOS_API bool | dos_qvariant_toBool (const DosQVariant *vptr) |
Calls the QVariant::value<bool>() function. More... | |
DOS_API char * | dos_qvariant_toString (const DosQVariant *vptr) |
Calls the QVariant::value<QString>() function. More... | |
DOS_API float | dos_qvariant_toFloat (const DosQVariant *vptr) |
Calls the QVariant::value<float>() function. More... | |
DOS_API double | dos_qvariant_toDouble (const DosQVariant *vptr) |
Calls the QVariant::value<double>() function. More... | |
DOS_API DosQVariantArray * | dos_qvariant_toArray (const DosQVariant *vptr) |
Calls the QVariant::value<QVariantList>() function. More... | |
DOS_API DosQObject * | dos_qvariant_toQObject (const DosQVariant *vptr) |
Calls the QVariant::value<QObject*>() function. More... | |
Functions related to the QVariant class.
DOS_API void dos_qvariant_assign | ( | DosQVariant * | vptr, |
const DosQVariant * | other | ||
) |
Calls the QVariant::operator=(const QVariant&) function.
vptr | The QVariant (left side) |
other | The QVariant (right side) |
DOS_API DosQVariant* dos_qvariant_create | ( | void | ) |
Create a new QVariant (null)
DOS_API DosQVariant* dos_qvariant_create_array | ( | int | size, |
DosQVariant ** | array | ||
) |
Create a new QVariant holding a QVariantList.
size | The size of the QVariant array |
array | The array of QVariant that will be inserted in the inner QVariantList |
array
is owned by the caller thus it will not be deleted DOS_API DosQVariant* dos_qvariant_create_bool | ( | bool | value | ) |
Create a new QVariant holding a bool value.
value | The bool value |
DOS_API DosQVariant* dos_qvariant_create_double | ( | double | value | ) |
Create a new QVariant holding a double value.
value | The double value |
DOS_API DosQVariant* dos_qvariant_create_float | ( | float | value | ) |
Create a new QVariant holding a float value.
value | The float value |
DOS_API DosQVariant* dos_qvariant_create_int | ( | int | value | ) |
Create a new QVariant holding an int value.
value | The int value |
DOS_API DosQVariant* dos_qvariant_create_qobject | ( | DosQObject * | value | ) |
Create a new QVariant holding a QObject value.
value | The QObject value |
DOS_API DosQVariant* dos_qvariant_create_qvariant | ( | const DosQVariant * | value | ) |
Create a new QVariant with the same value of the one given as argument.
value | The QVariant to which copy its value |
DOS_API DosQVariant* dos_qvariant_create_string | ( | const char * | value | ) |
Create a new QVariant holding a string value.
value | The string value |
DOS_API void dos_qvariant_delete | ( | DosQVariant * | vptr | ) |
Free the memory allocated for the given QVariant.
vptr | The QVariant |
DOS_API bool dos_qvariant_isnull | ( | const DosQVariant * | vptr | ) |
Calls the QVariant::isNull function.
vptr | The QVariant |
DOS_API void dos_qvariant_setArray | ( | DosQVariant * | vptr, |
int | size, | ||
DosQVariant ** | array | ||
) |
Calls the QVariant::setValue<QVariantList>() function.
vptr | The QVariant |
size | The size of the array |
array | The array of QVariant use for setting the inner QVariantList |
DOS_API void dos_qvariant_setBool | ( | DosQVariant * | vptr, |
bool | value | ||
) |
Calls the QVariant::setValue<bool>() function.
vptr | The QVariant |
value | The bool value |
DOS_API void dos_qvariant_setDouble | ( | DosQVariant * | vptr, |
double | value | ||
) |
Calls the QVariant::setValue<double>() function.
vptr | The QVariant |
value | The double value |
DOS_API void dos_qvariant_setFloat | ( | DosQVariant * | vptr, |
float | value | ||
) |
Calls the QVariant::setValue<float>() function.
vptr | The QVariant |
value | The float value |
DOS_API void dos_qvariant_setInt | ( | DosQVariant * | vptr, |
int | value | ||
) |
Calls the QVariant::setValue<int>() function.
vptr | The QVariant |
value | The int value |
DOS_API void dos_qvariant_setQObject | ( | DosQVariant * | vptr, |
DosQObject * | value | ||
) |
Calls the QVariant::setValue<QObject*>() function.
vptr | The QVariant |
value | The string value |
DOS_API void dos_qvariant_setString | ( | DosQVariant * | vptr, |
const char * | value | ||
) |
Calls the QVariant::setValue<QString>() function.
vptr | The QVariant |
value | The string value |
DOS_API DosQVariantArray* dos_qvariant_toArray | ( | const DosQVariant * | vptr | ) |
Calls the QVariant::value<QVariantList>() function.
vptr | The QVariant |
DOS_API bool dos_qvariant_toBool | ( | const DosQVariant * | vptr | ) |
Calls the QVariant::value<bool>() function.
vptr | The QVariant |
DOS_API double dos_qvariant_toDouble | ( | const DosQVariant * | vptr | ) |
Calls the QVariant::value<double>() function.
vptr | The QVariant |
DOS_API float dos_qvariant_toFloat | ( | const DosQVariant * | vptr | ) |
Calls the QVariant::value<float>() function.
vptr | The QVariant |
DOS_API int dos_qvariant_toInt | ( | const DosQVariant * | vptr | ) |
Calls the QVariant::value<int>() function.
vptr | The QVariant |
DOS_API DosQObject* dos_qvariant_toQObject | ( | const DosQVariant * | vptr | ) |
Calls the QVariant::value<QObject*>() function.
vptr | The QVariant |
DOS_API char* dos_qvariant_toString | ( | const DosQVariant * | vptr | ) |
Calls the QVariant::value<QString>() function.
vptr | The QVariant |