Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwinanimationeffect.h
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 87 | private: | |||
---|---|---|---|---|---|
89 | bool valid; | 89 | bool valid; | ||
90 | }; | 90 | }; | ||
91 | 91 | | |||
92 | class AniData; | 92 | class AniData; | ||
93 | class AnimationEffectPrivate; | 93 | class AnimationEffectPrivate; | ||
94 | class KWINEFFECTS_EXPORT AnimationEffect : public Effect | 94 | class KWINEFFECTS_EXPORT AnimationEffect : public Effect | ||
95 | { | 95 | { | ||
96 | Q_OBJECT | 96 | Q_OBJECT | ||
97 | Q_ENUMS(Anchor) | 97 | | ||
98 | Q_ENUMS(Attribute) | | |||
99 | Q_ENUMS(MetaType) | | |||
100 | public: | 98 | public: | ||
101 | typedef QMap< EffectWindow*, QPair<QList<AniData>, QRect> > AniMap; | 99 | typedef QMap< EffectWindow*, QPair<QList<AniData>, QRect> > AniMap; | ||
102 | 100 | | |||
103 | enum Anchor { Left = 1<<0, Top = 1<<1, Right = 1<<2, Bottom = 1<<3, | 101 | enum Anchor { Left = 1<<0, Top = 1<<1, Right = 1<<2, Bottom = 1<<3, | ||
104 | Horizontal = Left|Right, Vertical = Top|Bottom, Mouse = 1<<4 }; | 102 | Horizontal = Left|Right, Vertical = Top|Bottom, Mouse = 1<<4 }; | ||
103 | Q_ENUM(Anchor) | ||||
104 | | ||||
105 | enum Attribute { | 105 | enum Attribute { | ||
106 | Opacity = 0, Brightness, Saturation, Scale, Rotation, | 106 | Opacity = 0, Brightness, Saturation, Scale, Rotation, | ||
107 | Position, Size, Translation, Clip, Generic, CrossFadePrevious, | 107 | Position, Size, Translation, Clip, Generic, CrossFadePrevious, | ||
108 | NonFloatBase = Position | 108 | NonFloatBase = Position | ||
109 | }; | 109 | }; | ||
110 | Q_ENUM(Attribute) | ||||
111 | | ||||
110 | enum MetaType { SourceAnchor, TargetAnchor, | 112 | enum MetaType { SourceAnchor, TargetAnchor, | ||
111 | RelativeSourceX, RelativeSourceY, RelativeTargetX, RelativeTargetY, Axis }; | 113 | RelativeSourceX, RelativeSourceY, RelativeTargetX, RelativeTargetY, Axis }; | ||
114 | Q_ENUM(MetaType) | ||||
112 | 115 | | |||
113 | /** | 116 | /** | ||
114 | * This enum type is used to specify the direction of the animation. | 117 | * This enum type is used to specify the direction of the animation. | ||
115 | **/ | 118 | **/ | ||
116 | enum Direction { | 119 | enum Direction { | ||
117 | Forward, ///< The animation goes from source to target. | 120 | Forward, ///< The animation goes from source to target. | ||
118 | Backward ///< The animation goes from target to source. | 121 | Backward ///< The animation goes from target to source. | ||
119 | }; | 122 | }; | ||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |