diff -r 000000000000 -r 5d03bc08d59c windowing/windowserver/nonnga/SERVER/cliwin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/windowing/windowserver/nonnga/SERVER/cliwin.h Tue Feb 02 01:47:50 2010 +0200 @@ -0,0 +1,166 @@ +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// CWsClientWindow and associated classes definitions +// +// + +#ifndef __CLIWIN_H__ +#define __CLIWIN_H__ + +#include "server.h" +#include "window.h" + +class CWsClientWindow : public CWsWindow + { +protected: + enum + { + KWinRedrawPriBitsPerLevel=4, + KWinRedrawPriMaxOrdinal=(1< *PointerKeyList() const; + void SetUserTransparentRegion(RWsRegion* aRegion); + // from CWsWindowBase thru CWsWindow + TBool IsDSAHost() const; + +private: + TInt iCornerData; + TUint iBackupsRequested; + TRegion *iBaseArea; // The base area of the window without any clipping from windows taken into account + TDblQue *iPointerKeyList; + static TBool iAbsoluteFading; + /** + By default the full window region is transparent if the window is marked + as transparent. If this is not the desired behaviour the client can + define the transparent region itself. + + @see RWindow::SetTransparentRegion() + */ + RWsRegion* iUserDefinedTransparentRegion; + RWsRegion* iUserDefinedOpaqueRegion; + }; + +inline CWsClientWindow *CWsClientWindow::Child() const + { + return((CWsClientWindow *)iChild); + } + +inline CWsClientWindow *CWsClientWindow::NextSibling() const + { + return((CWsClientWindow *)iSibling); + } + +inline CWsClientWindow *CWsClientWindow::PrevSibling() const + { + return((CWsClientWindow *)GetPrevSibling()); + } + +inline const TRegion *CWsClientWindow::BaseArea() const + { + return iBaseArea; + } + +inline void CWsClientWindow::UpdateAnimArea() + { + iRedraw->UpdateAnimArea(); + } + +inline TBool CWsClientWindow::IsFadeBehind() const + { + return(iFlags&EFlagFadeBehind); + } + +inline void CWsClientWindow::SetAbsoluteFading(TBool aAbsoluteFading) + { + iAbsoluteFading=aAbsoluteFading; + } + +inline CWsClientWindow *CWsClientWindow::PrevSiblingMultiParent() const + { + return((CWsClientWindow *)CWsWindowBase::PrevSiblingMultiParent()); + } + +inline CWsClientWindow *CWsClientWindow::NextSiblingMultiParent() const + { + return((CWsClientWindow *)CWsWindowBase::NextSiblingMultiParent()); + } + +inline const TRegion * CWsClientWindow::GetUserOpaqueRegion() + { + return iUserDefinedOpaqueRegion; + } + +#endif