os/graphics/windowing/windowserver/nga/SERVER/openwfc/screen.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/windowing/windowserver/nga/SERVER/openwfc/screen.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,466 @@
     1.4 +// Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// Defines the screen class (was in scrdev.h)
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef __SCREEN_H__
    1.22 +#define __SCREEN_H__
    1.23 +
    1.24 +#include <e32std.h>
    1.25 +#include <e32base.h>
    1.26 +#include <graphics/surface.h>
    1.27 +#include <hal_data.h>
    1.28 +#include <graphics/wsscene.h>
    1.29 +#include <graphics/wsdisplaypolicy.h>
    1.30 +
    1.31 +#include "W32STD.H"
    1.32 +#include "w32cmd.h"
    1.33 +#include "wstypes.h"
    1.34 +#include <graphics/WSGRAPHICDRAWERINTERFACE.H>
    1.35 +#include "panics.h"
    1.36 +
    1.37 +#include "wsdisplaychangeao.h"
    1.38 +
    1.39 +
    1.40 +class CWsDirectScreenAccess;
    1.41 +
    1.42 +class CWsWindowGroup;
    1.43 +class CWsWindow;
    1.44 +class CWsRootWindow;
    1.45 +class CWsClientWindow;
    1.46 +class CDebugBar;
    1.47 +class CScreenRedraw;
    1.48 +class CWsSpriteManager;
    1.49 +class CWindowElementSet;
    1.50 +class CActiveComposer;
    1.51 +class CRegisteredSurfaceMap;
    1.52 +class MWsScene;
    1.53 +class MWsElement;
    1.54 +class MWsScreenDevice;
    1.55 +class MWsDisplayMapping;
    1.56 +class MWsDisplayControl;
    1.57 +class MWsTextCursor;
    1.58 +class CGraphicsDeviceMap;
    1.59 +class TDisplayConfiguration;
    1.60 +#if defined(__WINS__) && defined(_DEBUG)
    1.61 +class CDebugOsbWin;
    1.62 +#endif
    1.63 +
    1.64 +enum TAnimType
    1.65 +	{
    1.66 +	EWindowAnim			= 0x01,
    1.67 +	ESpriteAnim			= 0x02,
    1.68 +	ETextCursor			= 0x04,
    1.69 +	EWindowSprite   	= 0x08,
    1.70 +	EFloatingSprite 	= 0x10,
    1.71 +	EFloatingSpriteAnim = 0x20,
    1.72 +	ECrpAnim			= 0x40,
    1.73 +	};
    1.74 +
    1.75 +_LIT(KWSERVIniFileVarChangeTracking, "CHANGETRACKING");
    1.76 +
    1.77 +class CScreen : public CBase, public MWsScreen, public MWsScreenConfigList, public MWsScreenConfig, public MWsWindowTree
    1.78 +	{
    1.79 +public:
    1.80 +	enum {EGetScanLineBufLen=0x100};	// Buffer of for returning result of GetScanLine
    1.81 +	enum TDisplayScreen
    1.82 +		{
    1.83 +		EBlankScreenOnRotation = 0x1,
    1.84 + 		EAutoClear = 0x2,
    1.85 + 		EHasDynamicSizeModes = 0x04,
    1.86 +		EChangeTracking = 0x8,
    1.87 +		};
    1.88 +	
    1.89 +	/**
    1.90 +	The fallback map is an array of 32 bit integers sufficiently large to store a single bit for any
    1.91 +	possible orientation and size of the screen, with the pixel rows padded to the end of the int.
    1.92 +	*/
    1.93 +	class CFallbackMap : public CBase
    1.94 +		{
    1.95 +	public:
    1.96 +		static CFallbackMap * NewL(CScreen* aScreen);
    1.97 +		~CFallbackMap();
    1.98 +		
    1.99 +		void Prepare();
   1.100 +		TBool FillRegion(const TRegion& aRegion);
   1.101 +		TBool FillRect(const TRect& aRect);
   1.102 +		TInt Count() const;
   1.103 +		const TRect * Rect() const;
   1.104 +		const RRegion * Region() const;
   1.105 +		TInt Resize(const TSize& aSize);
   1.106 +
   1.107 +	private:	
   1.108 +		CFallbackMap(CScreen* aScreen);
   1.109 +		void ConstructL();
   1.110 +		
   1.111 +	public:
   1.112 +		CScreen* iScreen;
   1.113 +		RRegionBuf<1> iRegion;
   1.114 +		TInt iCount;
   1.115 +		TInt iMapSize; // size in padded TInts
   1.116 +		TInt * iMap;
   1.117 +		};
   1.118 +public:
   1.119 +	CScreen();
   1.120 +	~CScreen();
   1.121 +	void ConstructL( const TRect& aDigitiserArea, TInt aScreenNumber);
   1.122 +	void AbortAllDirectDrawing(RDirectScreenAccess::TTerminationReasons aReason);
   1.123 +	void AddDirect(CWsDirectScreenAccess& aDirect);
   1.124 +	void RemoveDirect(CWsDirectScreenAccess& aDirect);
   1.125 +	void AbortDSAs(RDirectScreenAccess::TTerminationReasons aReason,TSglQue<CWsDirectScreenAccess>& aDirects);
   1.126 +	void ReleaseDsaScreenDevice();
   1.127 +	void AcquireDsaScreenDeviceL();
   1.128 +	void CreateDsaScreenDeviceIfSupportedL(TDisplayMode aScreenMode);
   1.129 +	TBool DoCreateDsaScreenDevice(TDisplayMode aScreenMode);
   1.130 +#if defined(_DEBUG)
   1.131 +	TBool IsDirectOnQueue(const CWsDirectScreenAccess* aDirect);
   1.132 +#endif
   1.133 +
   1.134 +	inline CWsWindowGroup* FocusWindowGroup();
   1.135 +	void KillForegroundSession();
   1.136 +	void ResetFocus(CWsWindowGroup *aClosingWindow);
   1.137 +	inline TBool BlankScreenOnRotation();
   1.138 +	inline TBool AutoClear();
   1.139 +	void RemoveFromDefaultOwningList(CWsWindowGroup *aDestroyedGroup);
   1.140 +	void SetDefaultOwningWindow(CWsWindowGroup *aGroup);
   1.141 +	inline CWsWindowGroup *DefaultOwningWindowGroup();
   1.142 +	const MWsScreenDevice& ScreenDevice() const;
   1.143 +	const CGraphicsDeviceMap& DeviceMap() const;	
   1.144 +	inline const TSurfaceId& DsaSurface() const;
   1.145 +	inline CWsRootWindow* RootWindow() const;
   1.146 +	inline TInt ScreenNumber() const;
   1.147 +	void UpdateDsa();
   1.148 +	inline TDisplayMode DefaultDisplayMode(const TInt aMode) const;
   1.149 +	TDisplayMode FirstDefaultDisplayMode() const;
   1.150 +	void MaxNumColors(TInt& aColors,TInt& aGrays);
   1.151 +	TInt ColorModesFlag();
   1.152 +	inline void GetFadingParams(TUint8& aBlackMap,TUint8& aWhiteMap) const;
   1.153 +	inline void SetFadingParams(TUint8 aBlackMap,TUint8 aWhiteMap);
   1.154 +	void GetScanLine(const TWsSdCmdGetScanLine *aGetScanLine);
   1.155 +
   1.156 +	TBool SetScreenModeEnforcement(TInt aMode);
   1.157 +	inline TInt ScreenSizeMode() const;
   1.158 +	void SetPointerCursorArea(TInt aMode,const TRect& aRect);
   1.159 +	inline TRect GetPointerCursorArea(TInt aMode) const;
   1.160 +	CFbsBitGc::TGraphicsOrientation Orientation() const;
   1.161 +	void CycleDisplaySize();
   1.162 +	TBool UpdateOrientation(MWsScene::TSceneRotation* aOldRotation = NULL);
   1.163 +	void doSetScreenMode(TInt aMode,TBool aInsideStartup=EFalse);
   1.164 +	inline TSize CurrentScreenSize() const;
   1.165 +	TRect DrawableArea() const;
   1.166 +	void CycleOrientation();
   1.167 +	TClientPanic SetModeRotation(TInt aMode,CFbsBitGc::TGraphicsOrientation aRotation);
   1.168 +	void LoadScreenSizesL(TSize aScreenSize);
   1.169 +	void LoadScreenSizeProperties(TDisplayMode aDefaultDisplayMode);
   1.170 +	void SetDigitiserAreas(const TSize& aUiSize);
   1.171 +	inline TInt NumScreenSizeModes() const;
   1.172 +	inline const TSizeMode& ScreenSizeModeData() const;
   1.173 +	inline const TSizeMode& ScreenSizeModeData(TInt aMode) const;
   1.174 +	inline TScreenModeEnforcement SizeEnforcementMode() const;
   1.175 +	void GetScreenSizeAndRotation(TPixelsTwipsAndRotation &aSar, TInt aScreenMode);
   1.176 +	void GetScreenSizeAndRotation(TPixelsAndRotation &aSar, TInt aScreenMode);
   1.177 +	void SetCurrentScreenModeAttributes(const TSizeMode &aModeData);
   1.178 +	TPoint PhysicalToLogical(TPoint aPhysicalPt);
   1.179 +	void IncContrast();
   1.180 +	void DecContrast();
   1.181 +	void IncBrightness();
   1.182 +	void DecBrightness();
   1.183 +	inline TBool IsValidScreenSizeMode(TInt aMode) const;
   1.184 +	TInt GetScreenSizeModeListL();
   1.185 +	// called by CWsGc when it is implementing MWsGc
   1.186 +	const TTime& Now() const;
   1.187 +	void ScheduleAnimation(TAnimType aType, const TRect& aRect,const TTimeIntervalMicroSeconds& aFromNow,const TTimeIntervalMicroSeconds& aFreq,const TTimeIntervalMicroSeconds& aStop, CWsWindow* aWindow);
   1.188 +	TBool IsScheduled(TAnimType aType, const TRect& aRect, CWsWindow* aWindow) const;
   1.189 +	// redraw scheduling code
   1.190 +	void AddRedrawRegion(const TRegion& aRegion, TBool aSchedule = ETrue, TRedrawDepth aDepth = ERedrawAll);
   1.191 +	void ScheduleRender(const TTimeIntervalMicroSeconds& aFromNow);
   1.192 +	void DoRedrawNow();
   1.193 +	void RedrawNowIfPending();
   1.194 +	void ScheduleRegionUpdate(const TRegion* aDefinitelyDirty);
   1.195 +// implementing MWsScreen
   1.196 +	void OnAnimation(TRequestStatus* aFinished);
   1.197 +	void Redraw();
   1.198 +	TBool RedrawInvalid(const TArray<TGraphicDrawerId>& aInvalid);
   1.199 +	inline TBool BackLightFlag();
   1.200 +// implementing interface extension
   1.201 +	TAny* ResolveObjectInterface(TUint aTypeId);
   1.202 +	
   1.203 +// implementing MWsScreenConfig... this might be better as RS interface, but half methods are in here!
   1.204 +	TSize ScreenModeSizeInPixels() const;
   1.205 +	TInt Stride() const;
   1.206 +	TInt SizeMode() const;
   1.207 +	TSize ScalingFactor() const;
   1.208 +	TPoint Origin() const;
   1.209 +	TPoint ScaledOrigin() const;
   1.210 +	
   1.211 +// implementing MWsScreenConfigList
   1.212 +	TInt	GetScreenSizeModeList(RArray<TInt>&aList) const;
   1.213 +	TDisplayMode DisplayModeL(TInt aIndex) const;
   1.214 +	TSize ScreenModeSizeInPixelsL(TInt aIndex) const;
   1.215 +	/** Get screen size in twips for current screen size mode as defined in wsini */
   1.216 +	TSize ScreenModeSizeInTwipsL(TInt aIndex) const;
   1.217 +	CFbsBitGc::TGraphicsOrientation OrientationL(TInt aIndex) const;
   1.218 +	TInt AvailableOrientationsL(TInt aIndex) const;
   1.219 +	TSize ScalingFactorL(TInt aIndex) const;
   1.220 +	TPoint OriginL(TInt aIndex) const;
   1.221 +	TPoint ScaledOriginL(TInt aIndex) const;
   1.222 +	TInt ModeFlagsL(TInt aIndex) const;
   1.223 +
   1.224 +//implementing MWsWindowTree
   1.225 +	void SendTree() const;
   1.226 +	
   1.227 +// other public methods
   1.228 +
   1.229 +	TDisplayMode DisplayMode() const;
   1.230 +	TSize SizeInPixels() const;
   1.231 +	TSize SizeInTwips() const;
   1.232 +	TSize DSASizeInPixels() const;
   1.233 +	inline CWindowElementSet& WindowElements() const;
   1.234 + 	inline MWsElement& UiElement() const;
   1.235 +	void ElementAdded();
   1.236 +	void ElementRemoved();
   1.237 +	//check if the current display mode has alpha
   1.238 +	inline TBool HasAlpha() const;
   1.239 +	//list of session and surface id
   1.240 +	CRegisteredSurfaceMap* SurfaceMap();
   1.241 +
   1.242 +	void DiscardAllSchedules();
   1.243 +	inline CDebugBar * DebugBar();
   1.244 +	inline CFallbackMap * FallbackMap();
   1.245 +	inline CWsSpriteManager* SpriteManager() const;
   1.246 +	TBool IsQuickFadeScheduled( CWsWindow* aWin ) const;
   1.247 +	void RemoveFromQuickFadeList( CWsWindow* aWin );
   1.248 +	void AcceptFadeRequest( CWsWindow* aWin, TBool	aFadeOn );
   1.249 +	TBool HasVisibleDirectOnQueue();
   1.250 +	TBool IsDSAClientWindow( const CWsClientWindow* aWin ) const;
   1.251 +	MWsTextCursor* RenderStageTextCursor() const;
   1.252 +	void ClearDsaSurface(const TRect& area, const TRgb& color);
   1.253 +	void PositionUiElements(const TRect& aExtent,	const TRect& aViewport);
   1.254 +	TInt SetConfiguration(const TDisplayConfiguration& aConfig);
   1.255 +	TInt UpdateConfiguration(const TDisplayConfiguration& aConfig);
   1.256 +	void UpdateDynamicScreenModes();
   1.257 +	void RecalculateModeTwips(const TDisplayConfiguration* aConfig = NULL);
   1.258 +	inline void IncreaseDisplaySpinner();
   1.259 +	inline void IncreaseConfigSpinner();
   1.260 +	inline TInt DisplaySpinner();
   1.261 +	inline TInt ConfigSpinner();
   1.262 +	TInt AddNotificationClient(CWsClient *aClient);
   1.263 +	void RemoveNotificationClient(CWsClient *aClient);
   1.264 +	TInt FindNotificationClient (CWsClient *aClient);
   1.265 +	TInt GetNotificationClients(RPointerArray<CWsClient>& aClientsArray);
   1.266 +	inline MWsDisplayPolicy* DisplayPolicy();
   1.267 +	inline MWsDisplayMapping* DisplayMapping();
   1.268 +
   1.269 +	//CR1577
   1.270 +	inline TBool ChangeTracking() const;
   1.271 +	inline MWsWindowTreeObserver* WindowTreeObserver() const;
   1.272 +	inline MWsDrawAnnotationObserver* DrawAnnotationObserver() const;
   1.273 +	inline MWsWindowVisibilityNotifier* WindowVisibilityNotifier() const;
   1.274 +	void ScheduleWindow(CWsWindow* aWindow);
   1.275 +	void RemoveFromScheduledList(CWsWindow* aWindow);
   1.276 +	void RemoveFromTimedDrawList(CWsWindow* aWindow);
   1.277 +	void SetupVisibleRegionTracking(CWsWindow& aWindow, TBool aRegister) const;
   1.278 +	
   1.279 +	TBool IsAnimating() const;
   1.280 +	
   1.281 +private:
   1.282 +	class TInternalSizeMode: public TSizeMode
   1.283 +		{
   1.284 +	public:
   1.285 +		inline TInternalSizeMode(){}
   1.286 +		inline TInternalSizeMode(TSize& aSize)
   1.287 +			:	TSizeMode(aSize), iFlags(0)
   1.288 +			{	}
   1.289 +		TInt iFlags;
   1.290 +		};
   1.291 +	enum TSyncConsts
   1.292 +		{
   1.293 +		KDSAAbortingImmediateRespAwaitFrameMicrosec = 80000		// 0.08 sec
   1.294 +		};
   1.295 +	void SetInitialScreenSizeModeAndRotation();
   1.296 +	CWsWindowGroup* FindNewFocus(CWsRootWindow* aRootWindow);
   1.297 +	void UpdateCompositionMode();
   1.298 +	void InitializeSceneL();
   1.299 +	void InitializeUiElementsL();
   1.300 +	TInt InitializeDsaSurface();
   1.301 +	void LoadScreenRotationProperties(TInternalSizeMode& aMode, const TInt aModeIndex);
   1.302 +	void LoadScreenTwipsProperties(TInternalSizeMode& aMode, const TInt aModeIndex);
   1.303 +	void CreateFallbackMapL();
   1.304 +	MWsElement* CreateUiElementL(const TRect& aExtent);
   1.305 +	const TInternalSizeMode* ModePtrL(TInt aIndex) const;
   1.306 +	void ApplyRemainingWsiniSettingsL();
   1.307 +private:
   1.308 +	enum
   1.309 +		{
   1.310 +		eTimerCreated=0x1,
   1.311 +		};
   1.312 +	enum TDsaDrawState
   1.313 +		{
   1.314 +		EDsaDrawStateIdle,
   1.315 +		EDsaDrawStateDrawing
   1.316 +		};
   1.317 +private:
   1.318 +	TSglQue<CWsDirectScreenAccess> iDirects;
   1.319 +	RTimer iTimer;
   1.320 +	TRequestStatus iTimerStatus;
   1.321 +	TUint iFlags;
   1.322 +
   1.323 +	CScreenRedraw* iRedraw;
   1.324 +
   1.325 +	CWsRootWindow* iRootWindow;
   1.326 +	CWsWindowGroup *iCurrentFocus;
   1.327 +	CWsWindowGroup *iDefaultOwningWindow;
   1.328 +
   1.329 +	MWsScreenDevice* iScreenDevice;
   1.330 +	CFbsScreenDevice* iDsaDevice;
   1.331 +	CFbsBitGc* iDsaGc;
   1.332 +	CGraphicsDeviceMap* iDeviceMap;
   1.333 +// Size and rotation members
   1.334 +	RPointerArray<TInternalSizeMode> *iModes;
   1.335 +	TInt iScreenSizeMode;
   1.336 +	TScreenModeEnforcement iSizeEnforcementMode;
   1.337 +	TInt iScreenNumber;
   1.338 +	TInt iMaxContrast;
   1.339 +	TInt iMaxBrightness;
   1.340 +	TInt iNumScreenSizeModes;
   1.341 +	TInt iNumSupportedScreenSizeModes;
   1.342 +	TInt iNumberDrawingDsa;
   1.343 +	TBool iBackLightFlag;
   1.344 +	
   1.345 +	TDsaDrawState iDsaDrawState;
   1.346 +	
   1.347 +	MWsDisplayMapping* iDisplayMapping;
   1.348 +	MWsDisplayControl* iDisplayControl;
   1.349 +	MWsDisplayPolicy* iDisplayPolicy;
   1.350 +	MWsScene* iScene;
   1.351 +	CWindowElementSet* iWindowElementSet;
   1.352 +	MWsElement* iUiElement;
   1.353 +	TSurfaceId iDsaSurface;
   1.354 +	CRegisteredSurfaceMap* iSurfaceMap;
   1.355 +
   1.356 +	CDebugBar* iDebugBar;
   1.357 +	CFallbackMap* iFallbackMap;
   1.358 +	TUint8 iBlackMap;
   1.359 +	TUint8 iWhiteMap;
   1.360 +	CWsSpriteManager* iSpriteManager;
   1.361 +	//The next three interfaces should be provided by renderstages if the screen is to be used in CHANGETRACKING mode
   1.362 +	MWsWindowTreeObserver* iWindowTreeObserver;
   1.363 +	MWsDrawAnnotationObserver* iDrawAnnotationObserver;
   1.364 +	MWsWindowVisibilityNotifier* iWindowVisibilityNotifier;
   1.365 +
   1.366 +#if defined(__WINS__) && defined(_DEBUG)
   1.367 +	CDebugOsbWin* iDebugWin;
   1.368 +#endif
   1.369 +	CWsDisplayChangeNotifier* iDisplayChangeNotifier;
   1.370 +	CWsConfigChangeNotifier* iConfigChangeNotifier;
   1.371 +	TInt iDisplayChangeSpinner;
   1.372 +	TInt iConfigChangeSpinner;
   1.373 +	RPointerArray<CWsClient> iWsClientList; 
   1.374 +	TRect iDigitiserArea;
   1.375 +	};
   1.376 +
   1.377 +
   1.378 +
   1.379 +//
   1.380 +// inlines			//
   1.381 +//
   1.382 +
   1.383 +//
   1.384 +// CScreen
   1.385 +//
   1.386 +
   1.387 +inline CWsWindowGroup* CScreen::FocusWindowGroup()
   1.388 +	{return(iCurrentFocus);}
   1.389 +inline TBool CScreen::BlankScreenOnRotation()
   1.390 +	{return(iFlags&EBlankScreenOnRotation);}
   1.391 +inline TBool CScreen::AutoClear()
   1.392 +	{return(iFlags&EAutoClear);}
   1.393 +inline CWsWindowGroup* CScreen::DefaultOwningWindowGroup()
   1.394 +	{return(iDefaultOwningWindow);}
   1.395 +inline const TSurfaceId& CScreen::DsaSurface() const
   1.396 +	{return iDsaSurface;}
   1.397 +
   1.398 +inline CWsRootWindow* CScreen::RootWindow() const
   1.399 +	{return iRootWindow;}
   1.400 +inline TInt CScreen::ScreenNumber() const
   1.401 +	{return iScreenNumber;}
   1.402 +//
   1.403 +inline TInt CScreen::ScreenSizeMode() const
   1.404 +	{return(iScreenSizeMode);}
   1.405 +inline TRect CScreen::GetPointerCursorArea(TInt aMode) const
   1.406 +	{return (*iModes)[aMode]->iPointerCursorArea;}
   1.407 +inline TSize CScreen::CurrentScreenSize() const
   1.408 +	{return (*iModes)[iScreenSizeMode]->iScreenSize;}
   1.409 +inline TInt CScreen::NumScreenSizeModes() const
   1.410 +	{return iNumScreenSizeModes;}
   1.411 +inline const TSizeMode& CScreen::ScreenSizeModeData() const
   1.412 +	{return *(*iModes)[iScreenSizeMode];}
   1.413 +inline const TSizeMode& CScreen::ScreenSizeModeData(TInt aMode) const
   1.414 +	{return *(*iModes)[aMode];}
   1.415 +inline TDisplayMode CScreen::DefaultDisplayMode(const TInt aMode) const
   1.416 +	{return (*iModes)[aMode]->iDefaultDisplayMode;}
   1.417 +inline TScreenModeEnforcement CScreen::SizeEnforcementMode() const
   1.418 +	{return iSizeEnforcementMode;}
   1.419 +inline TBool CScreen::IsValidScreenSizeMode(TInt aMode) const
   1.420 +	{return (aMode>=0 && aMode<iModes->Count() && (*iModes)[aMode]!=NULL);}
   1.421 +inline TBool CScreen::BackLightFlag()
   1.422 +	{return iBackLightFlag;}
   1.423 +
   1.424 +inline TBool CScreen::HasAlpha() const
   1.425 +	{return (0x3 & (0x1 << (EColor16MAP - DisplayMode())));} //currently it is just EColor16MA Or EColor16MAP
   1.426 +
   1.427 +inline CWindowElementSet& CScreen::WindowElements() const
   1.428 +	{
   1.429 +	return *iWindowElementSet;
   1.430 +	}
   1.431 +
   1.432 +inline MWsElement& CScreen::UiElement() const
   1.433 +    {
   1.434 +    return *iUiElement;
   1.435 +    }
   1.436 +
   1.437 +inline CDebugBar * CScreen::DebugBar()
   1.438 +	{return iDebugBar;}
   1.439 +inline CScreen::CFallbackMap * CScreen::FallbackMap()
   1.440 +	{return iFallbackMap;}
   1.441 +	
   1.442 +inline void CScreen::GetFadingParams(TUint8& aBlackMap,TUint8& aWhiteMap) const
   1.443 +    {aBlackMap=iBlackMap;aWhiteMap=iWhiteMap;}
   1.444 +inline void CScreen::SetFadingParams(TUint8 aBlackMap,TUint8 aWhiteMap)
   1.445 +	{iBlackMap=aBlackMap;iWhiteMap=aWhiteMap;}
   1.446 +inline CWsSpriteManager* CScreen::SpriteManager() const
   1.447 +	{return iSpriteManager;}
   1.448 +inline MWsWindowTreeObserver* CScreen::WindowTreeObserver() const
   1.449 +	{return iWindowTreeObserver;}
   1.450 +inline MWsDrawAnnotationObserver* CScreen::DrawAnnotationObserver() const
   1.451 +	{return iDrawAnnotationObserver;}
   1.452 +inline MWsWindowVisibilityNotifier* CScreen::WindowVisibilityNotifier() const
   1.453 +	{return iWindowVisibilityNotifier;}
   1.454 +inline TBool CScreen::ChangeTracking() const
   1.455 +	{return iFlags&EChangeTracking;}
   1.456 +inline void CScreen::IncreaseDisplaySpinner()
   1.457 +	{iDisplayChangeSpinner++;}
   1.458 +inline void CScreen::IncreaseConfigSpinner()
   1.459 +	{iConfigChangeSpinner++;}
   1.460 +inline TInt CScreen::DisplaySpinner()
   1.461 +	{return iDisplayChangeSpinner;}
   1.462 +inline TInt CScreen::ConfigSpinner()
   1.463 +	{return iConfigChangeSpinner;}
   1.464 +inline MWsDisplayPolicy* CScreen::DisplayPolicy()
   1.465 +	{return iDisplayPolicy;}
   1.466 +inline MWsDisplayMapping* CScreen::DisplayMapping()
   1.467 +	{return iDisplayMapping;}
   1.468 +#endif
   1.469 +