Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: gdi.h
Link against: gdi.lib

Class TDisplayModeUtils

TDisplayModeUtils

Support

Supported from 5.0

Description

A set of static utility functions to test if the display mode is colour or greyscale, and how many colours/greyshades its supports.

Defined in TDisplayModeUtils:
IsDisplayModeColor(), NumDisplayModeColors()


Member functions


IsDisplayModeColor()

static TBool IsDisplayModeColor(TDisplayMode aDispMode);

Description

Tests whether the display mode specified is colour or greyscale.

Parameters

TDisplayMode aDispMode

The display mode.

Return value

TBool

True, if colour; false, if greyscale.


NumDisplayModeColors()

static TInt NumDisplayModeColors(TDisplayMode aDispMode);

Description

Gets the number of colours or grey shades supported by the specified display mode.

For instance, a display mode of EGray4 returns 4, EColor4K returns 4096.

Parameters

TDisplayMode aDispMode

The display mode.

Return value

TInt

The number of colours/grey shades supported by the display mode.