Version: 2.9.4
Public Member Functions
wxTextDropTarget Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/dnd.h>

Inheritance diagram for wxTextDropTarget:

Detailed Description

テキストデータに特化した、定義済みのドロップ先。

Library:  wxCore
Category:  Clipboard and Drag & Drop
参照:
Drag and Drop Overview, wxDropSource, wxDropTarget, wxFileDropTarget

Public Member Functions

 wxTextDropTarget ()
 Constructor.
virtual bool OnDrop (wxCoord x, wxCoord y)
 See wxDropTarget::OnDrop().
virtual bool OnDropText (wxCoord x, wxCoord y, const wxString &data)=0
 Override this function to receive dropped text.

List of all members.


Constructor & Destructor Documentation

wxTextDropTarget::wxTextDropTarget ( )

Constructor.


Member Function Documentation

virtual bool wxTextDropTarget::OnDrop ( wxCoord  x,
wxCoord  y 
) [virtual]

See wxDropTarget::OnDrop().

This function is implemented appropriately for text, and calls OnDropText().

Reimplemented from wxDropTarget.

virtual bool wxTextDropTarget::OnDropText ( wxCoord  x,
wxCoord  y,
const wxString data 
) [pure virtual]

Override this function to receive dropped text.

Parameters:
xThe x coordinate of the mouse.
yThe y coordinate of the mouse.
dataThe data being dropped: a wxString.

Return true to accept the data, or false to veto the operation.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines