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

Inherits from

Public Member Functions
~CResolutionUtil()
IMPORT_C voidGetClientRect(TRect &)
IMPORT_C TBoolGetFullScreen()
IMPORT_C TBoolGetLandscape()
IMPORT_C TIntGetScreenMode()
IMPORT_C voidGetScreenRect(TRect &)
IMPORT_C CResolutionUtil *InitializeL()
IMPORT_C TIntScreenMode()
IMPORT_C CResolutionUtil *Self()
IMPORT_C voidSetClientRect(const TRect &)
IMPORT_C voidSetFullScreen(TBool)
IMPORT_C voidSetLandscape(TBool)
IMPORT_C voidSetScreenRect(const TRect &)
IMPORT_C voidUpdateScreenMode()
Private Member Functions
CResolutionUtil(const TUid &)
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
enumTScreenModes {
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
}
Inherited Enumerations
CCoeStatic:@112
CCoeStatic:TScope
Private Attributes
TRect iClientRect
TBool iFullScreen
TBool iLandscape
TRect iScreenRect

Constructor & Destructor Documentation

CResolutionUtil(const TUid &)

CResolutionUtil(const TUid &aUid)[private]

Parameters

const TUid & aUid

~CResolutionUtil()

IMPORT_C~CResolutionUtil()[virtual]

Destructor.

Member Functions Documentation

GetClientRect(TRect &)

IMPORT_C voidGetClientRect(TRect &aRect)const

Gets the client rect for the current screen mode.

Since
S60 v5.0

Parameters

TRect & aRectclient rect for specified screen mode

GetFullScreen()

IMPORT_C TBoolGetFullScreen()const

Gets the Full Screen state.

Since
S60 v5.0

GetLandscape()

IMPORT_C TBoolGetLandscape()const

Gets the landscape mode to true or false.

Since
S60 v5.0

GetScreenMode()

IMPORT_C TIntGetScreenMode()const

Returns the screen mode. Return the real screen mode i.e. Image Editor flagging has no effect on return value.

Since
S60 v5.0

GetScreenRect(TRect &)

IMPORT_C voidGetScreenRect(TRect &aRect)const

Returns the screen rect for the current screen mode.

Since
S60 v5.0

Parameters

TRect & aRectscreen rect for specified screen mode

InitializeL()

IMPORT_C CResolutionUtil *InitializeL()[static]

Returns the singleton instance of this CCoeStatic. If the instance does not exist, a new one is created.

Since
S60 v5.0

ScreenMode()

IMPORT_C TIntScreenMode()const

Returns the screen mode.

Since
S60 v5.0

Self()

IMPORT_C CResolutionUtil *Self()[static]

Returns the singleton instance of this CCoeStatic. If the instance does not exist, panics the tread.

Since
S60 v5.0

SetClientRect(const TRect &)

IMPORT_C voidSetClientRect(const TRect &aRect)

Sets the client rect for the current screen mode.

Since
S60 v5.0

Parameters

const TRect & aRectclient rect for specified screen mode

SetFullScreen(TBool)

IMPORT_C voidSetFullScreen(TBoolaFullScreen)

Sets Full Screen mode to true or false.

Since
S60 v5.0

Parameters

TBool aFullScreenETrue if full screen, otherwise EFalse

SetLandscape(TBool)

IMPORT_C voidSetLandscape(TBoolaLandscape)

Sets the landscape mode to true or false.

Since
S60 v5.0

Parameters

TBool aLandscapeETrue if landscape, otherwise EFalse

SetScreenRect(const TRect &)

IMPORT_C voidSetScreenRect(const TRect &aRect)

Sets the screen rect for the current screen mode.

Since
S60 v5.0

Parameters

const TRect & aRectscreen rect for specified screen mode

UpdateScreenMode()

IMPORT_C voidUpdateScreenMode()

Determines the current screen size and updates rect.

Since
S60 v5.0

Member Enumerations Documentation

Enum TScreenModes

Screen modes

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]

Client rect

TBool iFullScreen

TBool iFullScreen[private]

Full Screen mode

TBool iLandscape

TBool iLandscape[private]

Landscape mode

TRect iScreenRect

TRect iScreenRect[private]

Screen rect