Home · All Classes · Main Classes · Deprecated |
Animation interface for animating adding and removing of items and animating switching between policies in a MLayout. More...
Inherits MAnimation.
Inherited by MBasicLayoutAnimation.
Public Member Functions | |
MLayoutAnimation (MLayout *layout) | |
virtual | ~MLayoutAnimation () |
MLayout * | layout () const |
virtual void | itemRemovedFromLayout (int index)=0 |
virtual void | itemAddedToLayout (int index)=0 |
virtual void | animatedDeleteItem (int index)=0 |
virtual void | setItemGeometry (int index, const QRectF &geometry)=0 |
virtual void | hideItem (int index)=0 |
bool | isAnimating () const |
Protected Member Functions | |
void | hideItemNow (QGraphicsWidget *item) |
void | showItemNow (QGraphicsWidget *item) |
Protected Attributes | |
MLayoutAnimationPrivate *const | d_ptr |
Animation interface for animating adding and removing of items and animating switching between policies in a MLayout.
Note that the item to animate will only be inherited from QGraphicsWidget. Non-widgets are not animated.
MLayoutAnimation::MLayoutAnimation | ( | MLayout * | layout | ) | [explicit] |
Construct the layout animator.
MLayoutAnimation::~MLayoutAnimation | ( | ) | [virtual] |
Destroys the layout animator.
virtual void MLayoutAnimation::animatedDeleteItem | ( | int | index | ) | [pure virtual] |
Implemented in MBasicLayoutAnimation.
virtual void MLayoutAnimation::hideItem | ( | int | index | ) | [pure virtual] |
Implemented in MBasicLayoutAnimation.
void MLayoutAnimation::hideItemNow | ( | QGraphicsWidget * | item | ) | [protected] |
Hide the given item.
Dervived classes should call this function to hide the given item, rather than calling QGraphicsItem::hide() on the item directly.
bool MLayoutAnimation::isAnimating | ( | ) | const |
Return whether the animator is currently animating any items.
virtual void MLayoutAnimation::itemAddedToLayout | ( | int | index | ) | [pure virtual] |
Implemented in MBasicLayoutAnimation.
virtual void MLayoutAnimation::itemRemovedFromLayout | ( | int | index | ) | [pure virtual] |
Implemented in MBasicLayoutAnimation.
MLayout * MLayoutAnimation::layout | ( | ) | const |
Return a pointer to the associated layout.
virtual void MLayoutAnimation::setItemGeometry | ( | int | index, | |
const QRectF & | geometry | |||
) | [pure virtual] |
Implemented in MBasicLayoutAnimation.
void MLayoutAnimation::showItemNow | ( | QGraphicsWidget * | item | ) | [protected] |
Show the given item if it was hidden by the layout.
Dervived classes should call this function to show the given item, rather than calling QGraphicsItem::show() on the item directly.
MLayoutAnimationPrivate* const MLayoutAnimation::d_ptr [protected] |
Copyright © 2010 Nokia Corporation | MeeGo Touch |