MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

wxIFMHitTestEvent Class Reference

Used to test if a given position is within a given coordinate system for a component. More...

#include <events.h>

List of all members.

Public Member Functions

 wxIFMHitTestEvent (wxIFMComponent *component, int coords, const wxPoint &pos)
 wxIFMHitTestEvent (const wxIFMHitTestEvent &event)
virtual wxEvent * Clone () const
int GetCoords () const
bool GetPassed () const
void SetPassed (bool passed=true)
const wxPoint & GetPos () const

Protected Attributes

int m_coords
 coords (rect) to hit test
bool m_passed
 true if the hit test passed
const wxPoint & m_pos
 position to test in screen coordinates


Detailed Description

Used to test if a given position is within a given coordinate system for a component.

See also:
coordsystems, wxIFMRectEvent, wxIFMConvertRectEvent

Definition at line 565 of file events.h.


Constructor & Destructor Documentation

wxIFMHitTestEvent::wxIFMHitTestEvent wxIFMComponent component,
int  coords,
const wxPoint &  pos
[inline]
 

Definition at line 573 of file events.h.

Referenced by Clone().

wxIFMHitTestEvent::wxIFMHitTestEvent const wxIFMHitTestEvent event  )  [inline]
 

Definition at line 580 of file events.h.


Member Function Documentation

virtual wxEvent* wxIFMHitTestEvent::Clone  )  const [inline, virtual]
 

Definition at line 587 of file events.h.

References wxIFMHitTestEvent().

int wxIFMHitTestEvent::GetCoords  )  const [inline]
 

Returns:
Which coordinate system (rect) to hit test

Definition at line 592 of file events.h.

References m_coords.

Referenced by wxIFMDefaultPlugin::OnHitTest().

bool wxIFMHitTestEvent::GetPassed  )  const [inline]
 

Returns:
If hit testing passed or not

Definition at line 597 of file events.h.

References m_passed.

const wxPoint& wxIFMHitTestEvent::GetPos  )  const [inline]
 

Returns:
Position to hit test

Definition at line 603 of file events.h.

References m_pos.

Referenced by wxIFMDefaultPlugin::OnHitTest().

void wxIFMHitTestEvent::SetPassed bool  passed = true  )  [inline]
 

Definition at line 598 of file events.h.

References m_passed.

Referenced by wxIFMDefaultPlugin::OnHitTest().


Member Data Documentation

int wxIFMHitTestEvent::m_coords [protected]
 

coords (rect) to hit test

Definition at line 568 of file events.h.

Referenced by GetCoords().

bool wxIFMHitTestEvent::m_passed [protected]
 

true if the hit test passed

Definition at line 569 of file events.h.

Referenced by GetPassed(), and SetPassed().

const wxPoint& wxIFMHitTestEvent::m_pos [protected]
 

position to test in screen coordinates

Definition at line 570 of file events.h.

Referenced by GetPos().


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

 

SourceForge Logo