Removed implicit enumerated animation movement direction combinations (i.e. MoveUpRight) and added support for combinations (i.e. MoveUp|MoveLeft). Currently used by RotationStacked and Slide animations, which were previously adapted to this clean design

svn path=/trunk/KDE/kdelibs/; revision=1083641
This commit is contained in:
Bruno de Oliveira Abinader 2010-02-01 18:06:01 +00:00
parent ed5c03e6b2
commit 38bf1d8725

View File

@ -65,28 +65,23 @@ public:
*/ */
enum Reference { enum Reference {
Center = 0, Center = 0,
Up, Up = 0x1,
Down, Down = 0x2,
Left, Left = 0x4,
Right Right = 0x8
}; };
/** /**
* The movement direction of an animation. * Animation movement direction.
*/ */
enum MovementDirection { enum MovementDirection {
MoveUp = 0, /**< Move up */ MoveAny = 0,
MoveUpRight, /**< Move up and right */ MoveUp = 0x1,
MoveRight, /**< Move right */ MoveRight = 0x2,
MoveDownRight, /**< Move down and right */ MoveDown = 0x4,
MoveDown, /**< Move down */ MoveLeft = 0x8
MoveDownLeft, /**< Move down and left */
MoveLeft, /**< Move left */
MoveUpLeft, /**< Move up and left */
MoveAny /**< Move in any direction*/
}; };
/** /**
* Default constructor. * Default constructor.
* *