MDisplayMapping Class Reference

class MDisplayMapping : public MDisplayMappingBase

Provides the Window Server client coordinate space mapping functions.

Inherits from

Member Functions Documentation

GetDisplayExtentOfWindow(const RWindowBase &, TRect &)

void GetDisplayExtentOfWindow ( const RWindowBase & aWindow,
TRect & aExtent
) const [pure virtual]

Retrieves the extent of a window relative to the top-left corner of the display.

This will differ from the window's AbsPosition() if the current screen size mode is offset from the corner of the display, or if the user interface is being scaled on the display.

Parameters

const RWindowBase & aWindow window in question
TRect & aExtent extent to be filled in

GetMaximumSurfaceSize(TSize &, TSize &)

void GetMaximumSurfaceSize ( TSize & aPixels,
TSize & aTwips
) const [pure virtual]

Returns the maximum useful size for a surface to be shown on the display at the current resolution, in both pixels and twips.

This may be larger than both the screen device SizeInPixels() and the size of the maximum window extent, if the user interface is being scaled by the display. In general, the value will be the native display resolution.

MDisplayControl CWsScreenDevice::SizeInPixels

Parameters

TSize & aPixels pixels to be filled in
TSize & aTwips twips to be filled in

GetMaximumWindowExtent(TRect &)

void GetMaximumWindowExtent ( TRect & aExtent ) const [pure virtual]

Retrieves the largest window extent that is visible at the current display resolution. This may be larger than the size reported by SizeInPixels(), and have a negative top-left position, for example.

MDisplayControl CWsScreenDevice::SizeInPixels

Parameters

TRect & aExtent extent to be filled in

Member Enumerations Documentation

Enum anonymous

Enumerators

KUidDisplayMapping = 0x1028656B
ETypeId = KUidDisplayMapping