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 virtual const TRegion& WindowArea() 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 ScreenSizeChanged(const TBool aSwapWidthAndHeight);
42 void OrientationChanged();
44 void SetSystemFaded(TBool aFaded, TUint8 aBlackMap, TUint8 aWhiteMap);
45 CWsWindowGroup* WindowGroup(TInt aWindowGroup);
46 CWsClientWindow *FirstTopClientWindow() const;
47 inline TRgb DefaultBackgroundColor();
49 public: // from CWsObject
50 virtual void CommandL(TInt aOpcode, const TAny *aCmdData);
53 inline CWsBlankWindow* BlankRedraw();
56 TRgb iDefaultBackgroundColor;
59 inline CWsBlankWindow* CWsRootWindow::BlankRedraw()
61 return STATIC_CAST(CWsBlankWindow*,iRedraw);
64 inline CWsWindowGroup *CWsRootWindow::Child() const
66 return (CWsWindowGroup *)iChild;
69 inline CWsWindowBase *CWsRootWindow::NextSibling() const
74 inline CWsWindowBase *CWsRootWindow::PrevSibling() const
76 return GetPrevSibling();
79 inline TRgb CWsRootWindow::DefaultBackgroundColor()
81 return iDefaultBackgroundColor;