Public Member Functions

nsDisplayEventReceiver Class Reference

A class that lets you receive events within the frame bounds but never paints. More...

#include <nsDisplayList.h>

Inheritance diagram for nsDisplayEventReceiver:
Collaboration diagram for nsDisplayEventReceiver:

List of all members.

Public Member Functions

 nsDisplayEventReceiver (nsIFrame *aFrame)
virtual nsIFrame * HitTest (nsDisplayListBuilder *aBuilder, nsPoint aPt, HitTestState *aState)
 This is called after we've constructed a display list for event handling.

Detailed Description

A class that lets you receive events within the frame bounds but never paints.


Constructor & Destructor Documentation

nsDisplayEventReceiver::nsDisplayEventReceiver ( nsIFrame *  aFrame  )  [inline]

Member Function Documentation

virtual nsIFrame* nsDisplayEventReceiver::HitTest ( nsDisplayListBuilder aBuilder,
nsPoint  aPt,
HitTestState aState 
) [inline, virtual]

This is called after we've constructed a display list for event handling.

When this is called, we've already ensured that aPt is in the item's bounds.

Parameters:
aState must point to a HitTestState. If you don't have one, just create one with the default constructor and pass it in.
Returns:
the frame that the point is considered over, or nsnull if this is not over any frame

Reimplemented from nsDisplayItem.


The documentation for this class was generated from the following file: