windowing/windowserver/tauto/TSPRITE.H
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #ifndef __TSPRITE_H__
       
    23 #define __TSPRITE_H__
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <w32std.h>
       
    27 #include "../tlib/testbase.h"
       
    28 #include "AUTO.H"
       
    29 #include "TGraphicsHarness.h"
       
    30 
       
    31 #define TEST_NEW_BITMAP_NAME _L("Z:\\WSTEST\\mytest.mbm")
       
    32 
       
    33 class CTTSprite : public CTWsGraphicsBase
       
    34 	{
       
    35 public:
       
    36 	CTTSprite(CTestStep* aStep);
       
    37 	~CTTSprite();
       
    38 protected:
       
    39 //from 	CTGraphicsStep
       
    40 	virtual void RunTestCaseL(TInt aCurTestCase);
       
    41 public:
       
    42 	void ConstructL();
       
    43 	void GeneralTestsL();
       
    44 	void GroupWindowSpritesL();
       
    45 	void LotsSpritesL();
       
    46 	void GeneralPointerCursor();
       
    47     void PointerCursorVisibleL();
       
    48 	void SpriteUpdateMemberTestsL();
       
    49 	void SpriteUpdateMemberNegTestsL();
       
    50 	void FindWindowGroupThreadTestsL();
       
    51 	void SpriteOnWindowOrphanedTestsL();
       
    52 	void ResizeMemberL();
       
    53 	void RotateNullSpriteL();
       
    54 	void DoubleActivateL();
       
    55 private:
       
    56 	void SetUpMember(TSpriteMember &aMember);
       
    57 	void SetUpPointerCursorL(RWsPointerCursor &aCursor, RWsSession &aSession);
       
    58 	void SetUpSpriteL(RWsSprite &aSprite, RWsSession &aSession, RWindowTreeNode &aWindow,TInt aFlags=0);
       
    59 	void SetUpSpriteL(RWsSprite &aSprite, RWindowTreeNode &aWindow,TPoint aPoint, TSpriteMember aMember, TInt aFlags=0);
       
    60 
       
    61 private:
       
    62 	RWsPointerCursor iCursor1;
       
    63 	RWsPointerCursor iCursor2;
       
    64 	CFbsBitmap iBitmap;
       
    65 	};
       
    66 
       
    67 class CTTSpriteStep : public CTGraphicsStep
       
    68 	{
       
    69 public:
       
    70 	CTTSpriteStep();
       
    71 protected:	
       
    72 	//from CTGraphicsStep
       
    73 	virtual CTGraphicsBase* CreateTestL();
       
    74 	};
       
    75 
       
    76 _LIT(KTTSpriteStep,"TSprite");
       
    77 
       
    78 
       
    79 #endif