CResolutionUtil Class Reference
| class CResolutionUtil : public CCoeStatic |
The class provides functions to query current screen dimensions. The class is used through CCoeEnv::Static()
?good_class_usage_example(s)
ImageEditorUtils.lib
- Since
- S60 v5.0
| Inherited Functions |
|---|
| | CBase::CBase() |
| | CBase::Delete(CBase *) |
| | CBase::Extension_(TUint,TAny *&,TAny *) |
| | CBase::operator new(TUint) |
| | CBase::operator new(TUint,TAny *) |
| | CBase::operator new(TUint,TLeave) |
| | CBase::operator new(TUint,TLeave,TUint) |
| | CBase::operator new(TUint,TUint) |
| | CBase::~CBase() |
| | CCoeStatic::CCoeStatic() |
| | CCoeStatic::CCoeStatic(TUid,TInt,TScope) |
| | CCoeStatic::CCoeStatic(TUid,TScope) |
| | CCoeStatic::~CCoeStatic() |
| Public Member Enumerations |
|---|
| enum | TScreenModes { EUnknown, EStandard, EStandardFullScreen, EStandardLandscape, EStandardLandscapeFullScreen, ESquare, ESquareFullScreen, ESquareRotated, ESquareRotatedFullScreen, EQVGA, EQVGAFullScreen, EQVGALandscape, EQVGALandscapeFullScreen, EDouble, EDoubleFullScreen, EDoubleLandscape, EDoubleLandscapeFullScreen, EHVGA, EHVGAFullScreen, EHVGALandscape, EHVGALandscapeFullScreen, EVGA, EVGAFullScreen, EVGALandscape, EVGALandscapeFullScreen, EQHD, EQHDFullScreen, EQHDLandscape, EQHDLandscapeFullScreen } |
Constructor & Destructor Documentation
CResolutionUtil(const TUid &)
| CResolutionUtil | ( | const TUid & | aUid | ) | [private] |
~CResolutionUtil()
| IMPORT_C | ~CResolutionUtil | ( | ) | [virtual] |
Member Functions Documentation
GetClientRect(TRect &)
| IMPORT_C void | GetClientRect | ( | TRect & | aRect | ) | const |
Gets the client rect for the current screen mode.
Parameters
| TRect & aRect | client rect for specified screen mode |
GetFullScreen()
| IMPORT_C TBool | GetFullScreen | ( | ) | const |
Gets the Full Screen state.
GetLandscape()
| IMPORT_C TBool | GetLandscape | ( | ) | const |
Gets the landscape mode to true or false.
GetScreenMode()
| IMPORT_C TInt | GetScreenMode | ( | ) | const |
Returns the screen mode. Return the real screen mode i.e. Image Editor flagging has no effect on return value.
GetScreenRect(TRect &)
| IMPORT_C void | GetScreenRect | ( | TRect & | aRect | ) | const |
Returns the screen rect for the current screen mode.
Parameters
| TRect & aRect | screen rect for specified screen mode |
InitializeL()
Returns the singleton instance of this CCoeStatic. If the instance does not exist, a new one is created.
ScreenMode()
| IMPORT_C TInt | ScreenMode | ( | ) | const |
Self()
Returns the singleton instance of this CCoeStatic. If the instance does not exist, panics the tread.
SetClientRect(const TRect &)
| IMPORT_C void | SetClientRect | ( | const TRect & | aRect | ) | |
Sets the client rect for the current screen mode.
Parameters
| const TRect & aRect | client rect for specified screen mode |
SetFullScreen(TBool)
| IMPORT_C void | SetFullScreen | ( | TBool | aFullScreen | ) | |
Sets Full Screen mode to true or false.
Parameters
| TBool aFullScreen | ETrue if full screen, otherwise EFalse |
SetLandscape(TBool)
| IMPORT_C void | SetLandscape | ( | TBool | aLandscape | ) | |
Sets the landscape mode to true or false.
Parameters
| TBool aLandscape | ETrue if landscape, otherwise EFalse |
SetScreenRect(const TRect &)
| IMPORT_C void | SetScreenRect | ( | const TRect & | aRect | ) | |
Sets the screen rect for the current screen mode.
Parameters
| const TRect & aRect | screen rect for specified screen mode |
UpdateScreenMode()
| IMPORT_C void | UpdateScreenMode | ( | ) | |
Determines the current screen size and updates rect.
Member Enumerations Documentation
Enum TScreenModes
Enumerators
| EUnknown | |
| EStandard | |
| EStandardFullScreen | |
| EStandardLandscape | |
| EStandardLandscapeFullScreen | |
| ESquare | |
| ESquareFullScreen | |
| ESquareRotated | |
| ESquareRotatedFullScreen | |
| EQVGA | |
| EQVGAFullScreen | |
| EQVGALandscape | |
| EQVGALandscapeFullScreen | |
| EDouble | |
| EDoubleFullScreen | |
| EDoubleLandscape | |
| EDoubleLandscapeFullScreen | |
| EHVGA | |
| EHVGAFullScreen | |
| EHVGALandscape | |
| EHVGALandscapeFullScreen | |
| EVGA | |
| EVGAFullScreen | |
| EVGALandscape | |
| EVGALandscapeFullScreen | |
| EQHD | |
| EQHDFullScreen | |
| EQHDLandscape | |
| EQHDLandscapeFullScreen | |
Member Data Documentation
TRect
iClientRect
|
TRect
| iClientRect | [private] |
TBool
iFullScreen
|
TBool
| iFullScreen | [private] |
TBool
iLandscape
|
TBool
| iLandscape | [private] |
TRect
iScreenRect
|
TRect
| iScreenRect | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.