TDisplayConfiguration1 Class Reference
class TDisplayConfiguration1 : public TDisplayConfigurationBase |
First collection of display configuration settings.
Constructor & Destructor Documentation
TDisplayConfiguration1()
TDisplayConfiguration1 | ( | ) | [inline] |
TDisplayConfiguration1(TInt)
TDisplayConfiguration1 | ( | TInt | aVersion | ) | [protected, inline] |
Constructor for passing through a version already supplied.
Generally used internally in the constructor chain.
Parameters
TInt aVersion | - Version of the class already calculated and being passed up through the classes. |
TDisplayConfiguration1(const TDisplayConfiguration1 &)
Member Functions Documentation
GetResolution(TSize &)
Retrieves the resolution, if defined.
If the resolution is undefined, the parameter is left unchanged. A resolution of (0,0) means the display is disabled.
IsDefined TAttribute::EResolution
Parameters
TSize & aSize | Receives the resolution. |
GetResolutionTwips(TSize &)
TBool
| GetResolutionTwips | ( | TSize & | aSize | ) | const [inline] |
Retrieves the physical size of the display resolution area, in twips, if defined.
For displays that have a fixed size, or can report their size, the physical dimensions corresponding to the current resolution shall be defined. Where the display's physical size cannot be determined (such as with composite video output, or a projector) an arbitrary size shall be defined that reflects the pixel aspect ratio.
If the display is not connected or output is disabled, the physical size shall not be defined. If the physical size is undefined, the parameter is left unchanged.
IsDefined TAttribute::EResolutionTwips
GetRotation(TRotation &)
Retrieves the rotation, if defined.
If the rotation is undefined, the parameter is left unchanged.
IsDefined TAttribute::ERotation
SetResolution(const TSize &)
void | SetResolution | ( | const TSize & | aSize | ) | [inline] |
Defines the resolution for the display, in pixels.
This always corresponds to a rotation of ERotationNormal. If a display can be disabled, (0,0) can be used to do so. A display can be disabled if the resolution list includes (0,0).
Parameters
const TSize & aSize | The resolution in pixels. |
SetResolutionTwips(const TSize &)
void | SetResolutionTwips | ( | const TSize & | aSize | ) | [inline] |
Defines the physical size of the display resolution area, in twips.
operator=(const TDisplayConfiguration1 &)
operator==(const TDisplayConfiguration1 &)
Compares two TDisplayConfiguration1 instances.
Generally used internally in the comparison chain. The two objects are equivalent if they have the same version, the same set of attributes defined and all the defined attributes are the same. Undefined attributes are not compared.
Member Enumerations Documentation
Enum TRotation
Defines possible rotation values.
Enumerators
ERotationNormal |
Normal orientation is supported.
|
ERotation90CW |
A 90 degree rotation is supported.
|
ERotation180 |
A 180 degree rotation is supported.
|
ERotation270CW |
A 270 degree rotation is supported.
|
ERotationIllegal |
Illegal rotation value.
|
Member Data Documentation
TSize
iResolution
TSize
| iResolution | [private] |
TSize
iTwipsSize
TSize
| iTwipsSize | [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.