1 \section{\class{wxDropTarget
}}\label{wxdroptarget
}
3 \overview{Overview
}{wxdndoverview
}
5 This class represents a target for a drag and drop operation.
7 \wxheading{Derived from
}
9 \helpref{wxObject
}{wxobject
}
11 \wxheading{Include files
}
17 \helpref{Drag and drop overview
}{wxdndoverview
},
\helpref{wxDropSource
}{wxdropsource
},
18 \helpref{wxTextDropTarget
}{wxtextdroptarget
},
\helpref{wxFileDropTarget
}{wxfiledroptarget
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxDropTarget::wxDropTarget
}\label{wxdroptargetwxdroptarget
}
24 \func{}{wxDropTarget
}{\void}
28 \membersection{wxDropTarget::
\destruct{wxDropTarget
}}\label{wxdroptargetdtor
}
30 \func{}{\destruct{wxDropTarget
}}{\void}
34 \membersection{wxDropTarget::GetFormatCount
}\label{wxdroptargetgetformatcount
}
36 \constfunc{virtual size
\_t}{GetFormatCount
}{\void}
38 Override this to indicate how many formats you support.
40 \membersection{wxDropTarget::GetFormat
}\label{wxdroptargetgetformat
}
42 \constfunc{virtual wxDataFormat
}{GetFormat
}{\param{size
\_t }{n
}}
44 Override this to indicate what kind of data you support.
46 \membersection{wxDropTarget::OnEnter
}\label{wxdroptargetonenter
}
48 \func{virtual void
}{OnEnter
}{\void}
50 Called when the mouse enters the drop target.
52 \membersection{wxDropTarget::OnDrop
}\label{wxdroptargetondrop
}
54 \func{virtual bool
}{OnDrop
}{\param{long
}{x
},
\param{long
}{y
},
\param{const void*
}{data
},
\param{size
\_t }{size
}}
56 Called when the user drops a data object on the target. Return FALSE to veto the operation.
58 \wxheading{Parameters
}
60 \docparam{x
}{The x coordinate of the mouse.
}
62 \docparam{y
}{The y coordinate of the mouse.
}
64 \docparam{data
}{The data being dropped.
}
66 \docparam{size
}{The size of the data being dropped.
}
68 \wxheading{Return value
}
70 Return TRUE to accept the data, FALSE to veto the operation.
72 \membersection{wxDropTarget::OnLeave
}\label{wxdroptargetonleave
}
74 \func{virtual void
}{OnLeave
}{\void}
76 Called when the mouse leaves the drop target.