MCoeControlHitTest Class Reference

class MCoeControlHitTest

Abstract interface for defining a control's hit region.

This could be implemented by a CCoeControl-derived class to define hit region checking. The object is installed by calling CCoeControl::SetHitTest().

The hit region is the area inside the control's rectangle in which pointer events are handled. It can be any shape, not necessarily rectangular.

Public Member Functions
TBool HitRegionContains(const TPoint &, const CCoeControl &)
Protected Member Functions
MCoeControlHitTest()
Private Member Functions
IMPORT_C voidMCoeControlHitTest_Reserved1()
IMPORT_C voidMCoeControlHitTest_Reserved2()
Private Attributes
TInt iMCoeControlHitTest_Reserved1

Constructor & Destructor Documentation

MCoeControlHitTest()

IMPORT_CMCoeControlHitTest()[protected]

Member Functions Documentation

HitRegionContains(const TPoint &, const CCoeControl &)

TBool HitRegionContains(const TPoint &aPoint,
const CCoeControl &aControl
)const [pure virtual]

Tests whether a pointer event occurred inside the control's hit region. This function is called by CCoeControl::HandlePointerEventL().

Parameters

const TPoint & aPointThe position of the pointer event.
const CCoeControl & aControl

MCoeControlHitTest_Reserved1()

IMPORT_C voidMCoeControlHitTest_Reserved1()[private, virtual]

MCoeControlHitTest_Reserved2()

IMPORT_C voidMCoeControlHitTest_Reserved2()[private, virtual]

Member Data Documentation

TInt iMCoeControlHitTest_Reserved1

TInt iMCoeControlHitTest_Reserved1[private]