Update contrib.
1 // Copyright (c) 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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
21 @internalComponent - Internal Symbian test code
24 #ifndef __TWINDOWS_H__
25 #define __TWINDOWS_H__
31 class RWindowTreeNode;
35 class RBackedUpWindow;
38 class CWsScreenDevice;
41 * The class handles redrawing of the window tree node standard class
43 class CTWindowTreeNode : public CBase
46 virtual void Event(TWsEvent & aEvent) = 0;
47 virtual void Redraw(TWsRedrawEvent & aEvent) = 0;
48 virtual RWindowTreeNode* WindowTreeNode() { return iWin; }
50 RWindowTreeNode* iWin;
54 * The class handles redrawing of the window window group
56 class CTWindowGroup : public CTWindowTreeNode
59 static CTWindowGroup* NewL(RWsSession& aWs, CWsScreenDevice* aScreenDevice);
61 void Event(TWsEvent & aEvent);
62 void Redraw(TWsRedrawEvent & aEvent);
63 RWindowGroup* WindowGroup() { return reinterpret_cast<RWindowGroup*>(iWin); }
66 void ConstructL(RWsSession & aWs, CWsScreenDevice* aScreenDevice);
70 * Base class for windows.
72 class CTWindow : public CTWindowTreeNode
75 static CTWindow* NewL(RWsSession& aWs, CTWindowTreeNode& aGroup, CWindowGc& aGc);
77 void Event(TWsEvent & aEvent);
78 void Redraw(TWsRedrawEvent & aEvent);
79 RWindow* Window() { return reinterpret_cast<RWindow*>(iWin); }
84 CTWindow(CWindowGc& aGc);
85 void ConstructL(RWsSession& aWs, CTWindowTreeNode& aGroup);
88 #endif //__TWINDOWS_H__