Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinanimationeffect.h
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 47 | inline QString toString() const { | |||
---|---|---|---|---|---|
48 | QString ret; | 48 | QString ret; | ||
49 | if (valid) | 49 | if (valid) | ||
50 | ret = QString::number(f[0]) + QLatin1Char(',') + QString::number(f[1]); | 50 | ret = QString::number(f[0]) + QLatin1Char(',') + QString::number(f[1]); | ||
51 | else | 51 | else | ||
52 | ret = QString(); | 52 | ret = QString(); | ||
53 | return ret; | 53 | return ret; | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | 56 | inline FPx2 &operator=(const FPx2 &other) | |||
57 | { f[0] = other.f[0]; f[1] = other.f[1]; valid = other.valid; return *this; } | ||||
57 | inline FPx2 &operator+=(const FPx2 &other) | 58 | inline FPx2 &operator+=(const FPx2 &other) | ||
58 | { f[0] += other[0]; f[1] += other[1]; return *this; } | 59 | { f[0] += other[0]; f[1] += other[1]; return *this; } | ||
59 | inline FPx2 &operator-=(const FPx2 &other) | 60 | inline FPx2 &operator-=(const FPx2 &other) | ||
60 | { f[0] -= other[0]; f[1] -= other[1]; return *this; } | 61 | { f[0] -= other[0]; f[1] -= other[1]; return *this; } | ||
61 | inline FPx2 &operator*=(float fl) | 62 | inline FPx2 &operator*=(float fl) | ||
62 | { f[0] *= fl; f[1] *= fl; return *this; } | 63 | { f[0] *= fl; f[1] *= fl; return *this; } | ||
63 | inline FPx2 &operator/=(float fl) | 64 | inline FPx2 &operator/=(float fl) | ||
64 | { f[0] /= fl; f[1] /= fl; return *this; } | 65 | { f[0] /= fl; f[1] /= fl; return *this; } | ||
▲ Show 20 Lines • Show All 354 Lines • Show Last 20 Lines |