equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
73 |
73 |
74 class CScreen : public CBase, public MWsScreen, public MWsScreenConfigList, public MWsScreenConfig, public MWsWindowTree |
74 class CScreen : public CBase, public MWsScreen, public MWsScreenConfigList, public MWsScreenConfig, public MWsWindowTree |
75 { |
75 { |
76 public: |
76 public: |
77 enum {EGetScanLineBufLen=0x100}; // Buffer of for returning result of GetScanLine |
77 enum {EGetScanLineBufLen=0x100}; // Buffer of for returning result of GetScanLine |
78 enum TDisplayScreen |
78 enum TDisplayScreenFlags |
79 { |
79 { |
80 EBlankScreenOnRotation = 0x1, |
80 EBlankScreenOnRotation = 0x1, |
81 EAutoClear = 0x2, |
81 EAutoClear = 0x2, |
82 EHasDynamicSizeModes = 0x04, |
82 EHasDynamicSizeModes = 0x04, |
83 EChangeTracking = 0x8, |
83 EChangeTracking = 0x8, |
|
84 ERepeatSettingHalOrientation = 0x20 |
84 }; |
85 }; |
85 |
86 |
86 /** |
87 /** |
87 The fallback map is an array of 32 bit integers sufficiently large to store a single bit for any |
88 The fallback map is an array of 32 bit integers sufficiently large to store a single bit for any |
88 possible orientation and size of the screen, with the pixel rows padded to the end of the int. |
89 possible orientation and size of the screen, with the pixel rows padded to the end of the int. |
247 TBool IsDSAClientWindow( const CWsClientWindow* aWin ) const; |
248 TBool IsDSAClientWindow( const CWsClientWindow* aWin ) const; |
248 MWsTextCursor* RenderStageTextCursor() const; |
249 MWsTextCursor* RenderStageTextCursor() const; |
249 void ClearDsaSurface(const TRect& area, const TRgb& color); |
250 void ClearDsaSurface(const TRect& area, const TRgb& color); |
250 void PositionUiElements(const TRect& aExtent, const TRect& aViewport); |
251 void PositionUiElements(const TRect& aExtent, const TRect& aViewport); |
251 TInt SetConfiguration(const TDisplayConfiguration& aConfig); |
252 TInt SetConfiguration(const TDisplayConfiguration& aConfig); |
|
253 TInt UpdateConfiguration(const TDisplayConfiguration& aConfig); |
252 void UpdateDynamicScreenModes(); |
254 void UpdateDynamicScreenModes(); |
253 void RecalculateModeTwips(const TDisplayConfiguration* aConfig = NULL); |
255 void RecalculateModeTwips(const TDisplayConfiguration* aConfig = NULL); |
254 inline void IncreaseDisplaySpinner(); |
256 inline void IncreaseDisplaySpinner(); |
255 inline void IncreaseConfigSpinner(); |
257 inline void IncreaseConfigSpinner(); |
256 inline TInt DisplaySpinner(); |
258 inline TInt DisplaySpinner(); |