21#include <glib-object.h>
25Type Type::fromInstance(
void *instance)
34Type Type::fromName(
const char *name)
39QString Type::name()
const
44Quark Type::nameQuark()
const
49bool Type::isValid()
const
51 return m_type != Type::Invalid;
54bool Type::isAbstract()
const
59bool Type::isDerived()
const
64bool Type::isFundamental()
const
69bool Type::isValueType()
const
74bool Type::hasValueTable()
const
79bool Type::isClassed()
const
84bool Type::isInstantiatable()
const
89bool Type::isDerivable()
const
94bool Type::isDeepDerivable()
const
99bool Type::isInterface()
const
104Type Type::fundamental()
const
109Type Type::parent()
const
114uint Type::depth()
const
119Type Type::nextBase(Type rootType)
const
124bool Type::isA(Type is_a_type)
const
129static inline QList<Type> gtypeArrayToList(GType *array, uint n)
132 for(uint i = 0; i<n; ++i) {
133 result.append(array[i]);
139QList<Type> Type::children()
const
143 return gtypeArrayToList(
a,
n);
146QList<Type> Type::interfaces()
const
150 return gtypeArrayToList(
a,
n);
153QList<Type> Type::interfacePrerequisites()
const
157 return gtypeArrayToList(
a,
n);
160void *Type::quarkData(
const Quark & qname)
const
165void Type::setQuarkData(
const Quark & qname,
void *data)
Wrappers for Glib and GObject classes.