MatOCAD Logo

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

wxIFMInitDragEvent Class Reference

#include <dragndrop.h>

Collaboration diagram for wxIFMInitDragEvent:

Collaboration graph
List of all members.

Public Member Functions

 wxIFMInitDragEvent (wxIFMComponent *component, wxIFMComponent *drag, const wxPoint &pos)
 wxIFMInitDragEvent (const wxIFMInitDragEvent &event)
virtual wxEvent * Clone () const
wxIFMComponentGetDraggedComponent () const
const wxPoint & GetPos () const

Private Attributes

 component that should be dragged
wxPoint m_pos
 position where the mouse was clicked in client coordinates

Detailed Description

This event is used to tell the dragndrop plugin to start dragging the component identified by m_drag. Dragging does not immediately begin, but the dragndrop plugin will capture input and wait for enough motion to begin the drag. This used to happen within the dragndrop plugin in response to mouse down events. Now, the mouse down even will send the wxEVT_IFM_INITDRAG event.

Definition at line 150 of file dragndrop.h.

Constructor & Destructor Documentation

wxIFMInitDragEvent::wxIFMInitDragEvent wxIFMComponent component,
wxIFMComponent drag,
const wxPoint &  pos

Definition at line 157 of file dragndrop.h.

Referenced by Clone().

wxIFMInitDragEvent::wxIFMInitDragEvent const wxIFMInitDragEvent event  )  [inline]

Definition at line 163 of file dragndrop.h.

Member Function Documentation

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

Definition at line 169 of file dragndrop.h.

References wxIFMInitDragEvent().

wxIFMComponent* wxIFMInitDragEvent::GetDraggedComponent  )  const [inline]

The component that will be dragged

Definition at line 174 of file dragndrop.h.

References m_drag.

Referenced by wxIFMDefaultDockingPlugin::OnDragInit().

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

The position of the mouse in client coordinates

Definition at line 179 of file dragndrop.h.

References m_pos.

Referenced by wxIFMDefaultDockingPlugin::OnDragInit().

Member Data Documentation

wxIFMComponent* wxIFMInitDragEvent::m_drag [private]

component that should be dragged

Definition at line 153 of file dragndrop.h.

Referenced by GetDraggedComponent().

wxPoint wxIFMInitDragEvent::m_pos [private]

position where the mouse was clicked in client coordinates

Definition at line 154 of file dragndrop.h.

Referenced by GetPos().

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


SourceForge Logo