Version: 2.9.4
Public Member Functions
wxURLDataObject Class Reference

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

Inheritance diagram for wxURLDataObject:

Detailed Description

wxURLDataObject is a wxDataObject containing an URL and can be used e.g.

when you need to put an URL on or retrieve it from the clipboard:

    wxTheClipboard->SetData(new wxURLDataObject(url));
注:
This class is derived from wxDataObjectComposite on Windows rather than wxTextDataObject on all other platforms.

Library:  wxCore
Category:  Clipboard and Drag & Drop
参照:
Drag and Drop Overview, wxDataObject

Public Member Functions

 wxURLDataObject (const wxString &url=wxEmptyString)
 Constructor, may be used to initialize the URL.
wxString GetURL () const
 Returns the URL stored by this object, as a string.
void SetURL (const wxString &url)
 Sets the URL stored by this object.

List of all members.


Constructor & Destructor Documentation

wxURLDataObject::wxURLDataObject ( const wxString url = wxEmptyString)

Constructor, may be used to initialize the URL.

If url is empty, SetURL() can be used later.


Member Function Documentation

wxString wxURLDataObject::GetURL ( ) const

Returns the URL stored by this object, as a string.

void wxURLDataObject::SetURL ( const wxString url)

Sets the URL stored by this object.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines