Home · All Classes · Main Classes · Deprecated
Public Member Functions | Protected Member Functions | Protected Attributes

MLayoutAnimation Class Reference

Animation interface for animating adding and removing of items and animating switching between policies in a MLayout. More...

Inherits MAnimation.

Inherited by MBasicLayoutAnimation.

List of all members.

Public Member Functions

 MLayoutAnimation (MLayout *layout)
virtual ~MLayoutAnimation ()
MLayoutlayout () 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

Detailed Description

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.

How to write a custom animation


Constructor & Destructor Documentation

MLayoutAnimation::MLayoutAnimation ( MLayout layout  )  [explicit]

Construct the layout animator.

MLayoutAnimation::~MLayoutAnimation (  )  [virtual]

Destroys the layout animator.


Member Function Documentation

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.


Member Data Documentation

MLayoutAnimationPrivate* const MLayoutAnimation::d_ptr [protected]

Copyright © 2010 Nokia Corporation
MeeGo Touch