equal
deleted
inserted
replaced
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
270 inline TInt CBitmapAnim::Count() const |
270 inline TInt CBitmapAnim::Count() const |
271 { return iBitmapAnimFrameDataArray.Count(); } |
271 { return iBitmapAnimFrameDataArray.Count(); } |
272 |
272 |
273 // Returns ETrue every time the index frame is valid, otherwise it returns EFalse. |
273 // Returns ETrue every time the index frame is valid, otherwise it returns EFalse. |
274 inline TBool CBitmapAnim::IsFrameDisplayable() const |
274 inline TBool CBitmapAnim::IsFrameDisplayable() const |
275 { return ( (iIndex >= 0) && iBitmapAnimFrameDataArray[iIndex]->iBitmap ); } |
275 { return ( (iIndex >= 0) && (iIndex < Count()) && iBitmapAnimFrameDataArray[iIndex]->iBitmap ); } |
276 |
276 |
277 // Returns ETrue if the animation is running, otherwise it returns EFalse. |
277 // Returns ETrue if the animation is running, otherwise it returns EFalse. |
278 inline TBool CBitmapAnim::IsRunning() const |
278 inline TBool CBitmapAnim::IsRunning() const |
279 { return iFlags&ERunning; } |
279 { return iFlags&ERunning; } |
280 |
280 |