CPowerSaveDisplayMode Class Reference
class CPowerSaveDisplayMode : public CBase |
Adaptation API for power save display mode use
Constructor & Destructor Documentation
CPowerSaveDisplayMode()
CPowerSaveDisplayMode | ( | ) | [private] |
power_save_display_mode.h
~CPowerSaveDisplayMode()
IMPORT_C | ~CPowerSaveDisplayMode | ( | ) | |
power_save_display_mode.h
Member Functions Documentation
ConstructL(TInt)
void | ConstructL | ( | TInt | aDisplayNumber | ) | [private] |
power_save_display_mode.h
Exit()
Turns off power save mode. All lines on display will be shown normally. power_save_display_mode.h
GetPowerSaveLevel()
Return the current power save level. power_save_display_mode.h
MaxLines()
Returns max number of lines that display supports in power save mode (e.g.50 lines or full screen). power_save_display_mode.h
NewL(TInt)
Creates object and connects to display. power_save_display_mode.h
Parameters
TInt aDisplayNumber = 0 | Which display to connect to, default is primary display. |
Set(TUint, TUint, TBool)
Enables power save mode. Sets lines between given parameters visible, other display lines are turned off and not shown.
- Pre-condition
- Image to display must be drawn in videobuffer before calling Set().
power_save_display_mode.h
Parameters
TUint aStartRow | First visible line, starting from 0 |
TUint aEndRow | Last visible line |
TBool aFullColors = EFalse | Full color mode if ETrue and hw supports that Note: full color mode consumes more power |
Set(TUint, TUint, TUint16 *, TBool)
Enables power save mode. Sets lines between given parameters visible, other display lines are turned off and not shown.
- Pre-condition
- Image to display must be drawn in videobuffer before calling Set().
power_save_display_mode.h
Parameters
TUint aStartRow | First visible line, starting from 0 |
TUint aEndRow | Last visible line |
TUint16 * aPixels | Pointer to array of color of each pixel |
TBool aFullColors = EFalse | Full color mode if ETrue and hw supports that Note: full color mode consumes more power |
SetPowerSaveLevel(CPowerSaveDisplayMode::TPowerSaveLevel)
Changes the current power save level. power_save_display_mode.h
Status()
Returns status of power save mode. power_save_display_mode.h
Member Enumerations Documentation
Enum TPowerSaveLevel
Power save levels define how much power should be saved. Note: higher settings result in lower image quality.
Enumerators
ENone = 0 | |
ELow = 1 | |
EMedium = 2 | |
EHigh = 3 | |
Member Data Documentation
TAny * iDisplayDriver
TAny * | iDisplayDriver | [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.