TSurfaceConfiguration2 Class Reference

class TSurfaceConfiguration2 : public TSurfaceConfiguration1

The second set of surface configuration attributes containing the flip attribute of the surface, along with a SupportsAllMembers function to help identify which attributes are available.

Inherits from

Constructor & Destructor Documentation

TSurfaceConfiguration2()

TSurfaceConfiguration2 ( ) [inline]

Default constructor for configuration 2

TSurfaceConfiguration2(TInt)

TSurfaceConfiguration2 ( TInt aSize ) [protected, inline]

Constructor for configuration 2 passing through a size already calculated

Parameters

TInt aSize Size of the class already calculated and being passed up through the classes

TSurfaceConfiguration2(const TSurfaceConfiguration2 &)

TSurfaceConfiguration2 ( const TSurfaceConfiguration2 & ) [private, inline]

Parameters

const TSurfaceConfiguration2 &

Member Functions Documentation

Flip()

TBool Flip ( ) const [inline]

The method gets the flip attribute of the surface stored in the object of this class. If the flip was not set, the value returned will be EFalse.

Post-condition
If the instance of TSurfaceConfiguration is too small, the default EFalse setting will be returned.

SetFlip(TBool)

TInt SetFlip ( TBool aFlip ) [inline]

This method sets the flip attribute to the surface. The default value is EFalse.

Post-condition
The flip attribute is updated in the object of this class. This does not imply that the flip is set for the surface content. The SetBackgroundSurface API must be called passing an object of this class as parameter to get the desired effect.

Parameters

TBool aFlip When ETrue enalbes flip in the x-axis

SupportsAllMembers()

TBool SupportsAllMembers ( ) [inline]

This method identifies which attributes are available to use.

Generally, any version of the server will accept any version of TSurfaceConfiguration , ignoring newer version attributes it does not recognize and substituting defaults for attributes not present in older version.

However, by using this method in conjunction with GetBackgroundSurface() the intelligent client can identify which blocks of attributes are actually present and supported after a call to GetBackgroundSurface, avoiding preparing complex attributes, or reducing user-interface control gadgets.

operator=(const TSurfaceConfiguration2 &)

TSurfaceConfiguration2 operator= ( const TSurfaceConfiguration2 & ) const [private, inline]

Parameters

const TSurfaceConfiguration2 &

operator==(const TSurfaceConfiguration2 &)

TBool operator== ( const TSurfaceConfiguration2 & aRhs ) const [protected, inline]

Parameters

const TSurfaceConfiguration2 & aRhs

Member Data Documentation

TBool iFlip

TBool iFlip [private]