42 #ifndef QDECLARATIVEVALUETYPE_P_H 43 #define QDECLARATIVEVALUETYPE_P_H 57 #include "private/qdeclarativeproperty_p.h" 58 #include "private/qdeclarativenullablevalue_p_p.h" 60 #include <QtCore/qobject.h> 61 #include <QtCore/qrect.h> 62 #include <QtCore/qeasingcurve.h> 63 #include <QtCore/qvariant.h> 64 #include <QtGui/qvector2d.h> 65 #include <QtGui/qvector3d.h> 66 #include <QtGui/qvector4d.h> 67 #include <QtGui/qmatrix4x4.h> 68 #include <QtGui/qquaternion.h> 69 #include <QtGui/qfont.h> 78 virtual void read(
QObject *,
int) = 0;
79 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags flags) = 0;
89 static bool isValueType(
int);
92 static void registerValueTypes();
93 static void registerValueTypesCompat();
97 else return valueTypes[idx];
112 virtual void read(
QObject *,
int);
113 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
115 virtual void setValue(
QVariant value);
134 virtual void read(
QObject *,
int);
135 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
137 virtual void setValue(
QVariant value);
156 virtual void read(
QObject *,
int);
157 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
159 virtual void setValue(
QVariant value);
162 qreal height()
const;
163 void setWidth(
qreal);
164 void setHeight(
qreal);
178 virtual void read(
QObject *,
int);
179 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
181 virtual void setValue(
QVariant value);
202 virtual void read(
QObject *,
int);
203 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
205 virtual void setValue(
QVariant value);
213 qreal height()
const;
214 void setWidth(
qreal);
215 void setHeight(
qreal);
231 virtual void read(
QObject *,
int);
232 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
234 virtual void setValue(
QVariant value);
258 virtual void read(
QObject *,
int);
259 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
261 virtual void setValue(
QVariant value);
281 virtual void read(
QObject *,
int);
282 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
284 virtual void setValue(
QVariant value);
307 virtual void read(
QObject *,
int);
308 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
310 virtual void setValue(
QVariant value);
335 virtual void read(
QObject *,
int);
336 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
338 virtual void setValue(
QVariant value);
340 qreal scalar()
const;
344 void setScalar(
qreal);
375 virtual void read(
QObject *,
int);
376 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
378 virtual void setValue(
QVariant value);
456 virtual void read(
QObject *,
int);
457 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
459 virtual void setValue(
QVariant value);
462 qreal amplitude()
const;
463 qreal overshoot()
const;
464 qreal period()
const;
466 void setAmplitude(
qreal);
467 void setOvershoot(
qreal);
468 void setPeriod(
qreal);
507 virtual void read(
QObject *,
int);
508 virtual void write(
QObject *,
int, QDeclarativePropertyPrivate::WriteFlags);
510 virtual void setValue(
QVariant value);
513 void setFamily(
const QString &);
516 void setBold(
bool b);
522 void setItalic(
bool b);
524 bool underline()
const;
525 void setUnderline(
bool b);
527 bool overline()
const;
528 void setOverline(
bool b);
530 bool strikeout()
const;
531 void setStrikeout(
bool b);
534 void setPointSize(
qreal size);
537 void setPixelSize(
int size);
542 qreal letterSpacing()
const;
543 void setLetterSpacing(
qreal spacing);
545 qreal wordSpacing()
const;
546 void setWordSpacing(
qreal spacing);
557 #endif // QDECLARATIVEVALUETYPE_P_H The QVariant class acts like a union for the most common Qt data types.
The QVector3D class represents a vector or vertex in 3D space.
#define QT_END_NAMESPACE
This macro expands to.
The QEasingCurve class provides easing curves for controlling animation.
The QVector4D class represents a vector or vertex in 4D space.
The QPointF class defines a point in the plane using floating point precision.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
The QSizeF class defines the size of a two-dimensional object using floating point precision...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
static float pixelSize(const QFontDef &request, int dpi)
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
The QVector2D class represents a vector or vertex in 2D space.
#define Q_DECLARATIVE_PRIVATE_EXPORT
QDeclarativeValueType * operator[](int idx) const
The QFont class specifies a font used for drawing text.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
#define Q_AUTOTEST_EXPORT
The QQuaternion class represents a quaternion consisting of a vector and scalar.
The QSize class defines the size of a two-dimensional object using integer point precision.
QDeclarativeNullableValue< int > dpi
static float pointSize(const QFontDef &fd, int dpi)