Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <COECNTRL.H>
Link against: cone.lib

Class MCoeControlHitTest

class MCoeControlHitTest;

Description

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(const MCoeControlHitTest *).

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.

Members

Defined in MCoeControlHitTest:


Construction and destruction


MCoeControlHitTest()

protected: IMPORT_C MCoeControlHitTest();

Description

[Top]


Member functions


HitRegionContains(const TPoint &,const CCoeControl &)const

virtual TBool HitRegionContains(const TPoint &aPoint, const CCoeControl &aControl) const=0;

Description

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

Parameters

const TPoint &aPoint

The position of the pointer event.

const CCoeControl &aControl

Return value

TBool

ETrue if the specified point lies inside the hit region, EFalse if not.


MCoeControlHitTest_Reserved1()

private: IMPORT_C virtual void MCoeControlHitTest_Reserved1();

Description


MCoeControlHitTest_Reserved2()

private: IMPORT_C virtual void MCoeControlHitTest_Reserved2();

Description