1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
<HTML>
<head><title>wxDropTarget</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxdroptarget"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx81.htm#wxdropsource"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx83.htm#wxeraseevent"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxDropTarget</H2>
<P>
<A HREF="wx312.htm#wxdndoverview">Overview</A><P>
This class represents a target for a drag and drop operation.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/dnd.h><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx312.htm#wxdndoverview">Drag and drop overview</A>, <A HREF="wx81.htm#wxdropsource">wxDropSource</A>,
<A HREF="wx243.htm#wxtextdroptarget">wxTextDropTarget</A>, <A HREF="wx91.htm#wxfiledroptarget">wxFileDropTarget</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxdroptargetwxdroptarget">wxDropTarget::wxDropTarget</A><BR>
<A HREF="#wxdroptargetdtor">wxDropTarget::~wxDropTarget</A><BR>
<A HREF="#wxdroptargetgetformatcount">wxDropTarget::GetFormatCount</A><BR>
<A HREF="#wxdroptargetgetformat">wxDropTarget::GetFormat</A><BR>
<A HREF="#wxdroptargetonenter">wxDropTarget::OnEnter</A><BR>
<A HREF="#wxdroptargetondrop">wxDropTarget::OnDrop</A><BR>
<A HREF="#wxdroptargetonleave">wxDropTarget::OnLeave</A><BR>
<P>
<HR>
<A NAME="wxdroptargetwxdroptarget"></A>
<H3>wxDropTarget::wxDropTarget</H3>
<P>
<B></B> <B>wxDropTarget</B>()<P>
Constructor.<P>
<HR>
<A NAME="wxdroptargetdtor"></A>
<H3>wxDropTarget::~wxDropTarget</H3>
<P>
<B></B> <B>~wxDropTarget</B>()<P>
Destructor.<P>
<HR>
<A NAME="wxdroptargetgetformatcount"></A>
<H3>wxDropTarget::GetFormatCount</H3>
<P>
<B>virtual size_t</B> <B>GetFormatCount</B>() <B>const</B><P>
Override this to indicate how many formats you support.<P>
<HR>
<A NAME="wxdroptargetgetformat"></A>
<H3>wxDropTarget::GetFormat</H3>
<P>
<B>virtual wxDataFormat</B> <B>GetFormat</B>(<B>size_t </B><I>n</I>) <B>const</B><P>
Override this to indicate what kind of data you support.<P>
<HR>
<A NAME="wxdroptargetonenter"></A>
<H3>wxDropTarget::OnEnter</H3>
<P>
<B>virtual void</B> <B>OnEnter</B>()<P>
Called when the mouse enters the drop target.<P>
<HR>
<A NAME="wxdroptargetondrop"></A>
<H3>wxDropTarget::OnDrop</H3>
<P>
<B>virtual bool</B> <B>OnDrop</B>(<B>long </B><I>x</I>, <B>long </B><I>y</I>, <B>const void* </B><I>data</I>, <B>size_t </B><I>size</I>)<P>
Called when the user drops a data object on the target. Return FALSE to veto the operation.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>x</I><UL><UL>
The x coordinate of the mouse.</UL></UL>
<P>
<I>y</I><UL><UL>
The y coordinate of the mouse.</UL></UL>
<P>
<I>data</I><UL><UL>
The data being dropped.</UL></UL>
<P>
<I>size</I><UL><UL>
The size of the data being dropped.</UL></UL>
<P>
<B><FONT COLOR="#FF0000">Return value</FONT></B><P>
Return TRUE to accept the data, FALSE to veto the operation.<P>
<HR>
<A NAME="wxdroptargetonleave"></A>
<H3>wxDropTarget::OnLeave</H3>
<P>
<B>virtual void</B> <B>OnLeave</B>()<P>
Called when the mouse leaves the drop target.<P>
</BODY></HTML>
|