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 void GetClientRect ( TRect &)
IMPORT_C TBool GetFullScreen ()
IMPORT_C TBool GetLandscape ()
IMPORT_C TInt GetScreenMode ()
IMPORT_C void GetScreenRect ( TRect &)
IMPORT_C CResolutionUtil * InitializeL ()
IMPORT_C TInt ScreenMode ()
IMPORT_C CResolutionUtil * Self ()
IMPORT_C void SetClientRect (const TRect &)
IMPORT_C void SetFullScreen ( TBool )
IMPORT_C void SetLandscape ( TBool )
IMPORT_C void SetScreenRect (const TRect &)
IMPORT_C void UpdateScreenMode ()
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
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
}
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 void GetClientRect ( TRect & aRect ) const

Gets the client rect for the current screen mode.

Since
S60 v5.0

Parameters

TRect & aRect client rect for specified screen mode

GetFullScreen()

IMPORT_C TBool GetFullScreen ( ) const

Gets the Full Screen state.

Since
S60 v5.0

GetLandscape()

IMPORT_C TBool GetLandscape ( ) const

Gets the landscape mode to true or false.

Since
S60 v5.0

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.

Since
S60 v5.0

GetScreenRect(TRect &)

IMPORT_C void GetScreenRect ( TRect & aRect ) const

Returns the screen rect for the current screen mode.

Since
S60 v5.0

Parameters

TRect & aRect screen 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 TInt ScreenMode ( ) 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 void SetClientRect ( const TRect & aRect )

Sets the client rect for the current screen mode.

Since
S60 v5.0

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.

Since
S60 v5.0

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.

Since
S60 v5.0

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.

Since
S60 v5.0

Parameters

const TRect & aRect screen rect for specified screen mode

UpdateScreenMode()

IMPORT_C void UpdateScreenMode ( )

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