![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section Contents
The following functions are available for use by all displayable windows. For documentation of the RWindowBase class, see The RWindowBase class.
TInt SetRequiredDisplayMode(TDisplayMode aMode);
This function was present in previous releases of EPOC, when the return value was an error code, which was set to KErrNotSupported if the display mode specified was not EGray2, EGray4 or EGray16. In EPOC Release 5, the function returns the closest display mode supported by the hardware to the one requested.
TDisplayMode aMode |
The requested display mode for the window. Unlike in previous releases of EPOC, can have any TDisplayMode value except TDisplayMode::ERgb (since this isn't a mode that screen hardware can ever take). Note also that there is a new enum value in this list, EColor4K which has been added since EPOC Release 3. |
TInt |
The display mode to which the window has been set. This is the closest display mode to aMode supported by the hardware, with an exception explained in the note below. |
If you request a display mode of EGray16 on a machine that only supports EGray4 then this function will return EGray4.
If you request a display mode of EGray4 on a machine that only supports EGray16 then this function will return EGray4. This is because BITGDI allows the window server to simulate EGray4 display mode while the screen is in EGray16 mode.
TDisplayMode DisplayMode()
Applications that call this member function will not work correctly on a version of EPOC earlier than ER5.
Retrieves the window's current display mode.
TDisplayMode |
The window's current display mode. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |