Update contrib.
1 // Copyright (c) 2006-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.
14 // CWsRootWindow and associated classes definitions
24 class CWsRootWindow : public CWsWindow
27 CWsRootWindow(CWsClient* aOwner, CScreen* aScreen);
30 const CWsWindow *PointerWindow(const TPoint &inPos,TPoint *outPos, TPoint *parentPos, const CWsWindow *grabWin,
31 const CWsWindow *&aOriginalWinItIsIn,const CWsWindowGroup *aForceInGroup);
32 CWsWindowGroup *Child() const;
33 inline CWsWindowBase *PrevSibling() const;
34 inline CWsWindowBase *NextSibling() const;
35 CWsWindowBase *Parent() const;
36 virtual void GenerateWindowRegion(RWsRegion &aRegion) const;
37 void SetColor(TRgb aColor);
38 void SetColorIfClear();
39 void InvalidateWholeScreen();
40 void Invalidate(RWsRegion* aRegion);
41 void AdjustCoordsDueToRotation();
43 void SetSystemFaded(TBool aFaded, TUint8 aBlackMap, TUint8 aWhiteMap);
44 CWsWindowGroup* WindowGroup(TInt aWindowGroup);
45 CWsTopClientWindow *FirstTopClientWindow() const;
46 inline TRgb DefaultBackgroundColor() const;
47 public: // from CWsObject
48 void CommandL(TInt aOpcode, const TAny *aCmdData);
49 public: // from MWsWindowTreeNode
50 const MWsWindow* Window() const;
51 public: // from MWsWindow
52 const TRegion& WindowArea() const;
53 public: // from CWsWindowBase
54 void SendState(MWsWindowTreeObserver& aWindowTreeObserver) const;
56 inline CWsBlankWindow* BlankRedraw();
59 TRgb iDefaultBackgroundColor;
62 inline CWsBlankWindow* CWsRootWindow::BlankRedraw()
64 return STATIC_CAST(CWsBlankWindow*,iRedraw);
67 inline CWsWindowGroup *CWsRootWindow::Child() const
69 return (CWsWindowGroup *)iChild;
72 inline CWsWindowBase *CWsRootWindow::NextSibling() const
77 inline CWsWindowBase *CWsRootWindow::PrevSibling() const
79 return GetPrevSibling();
82 inline CWsWindowBase *CWsRootWindow::Parent() const
86 inline TRgb CWsRootWindow::DefaultBackgroundColor() const
88 return iDefaultBackgroundColor;