Skip to content

Latest commit

 

History

History
171 lines (103 loc) · 2.59 KB

File metadata and controls

171 lines (103 loc) · 2.59 KB

API categories | API index

DragData (object)

Table of contents:

Methods

AddFile

path string
display_name string
Return void

Add a file that is being dragged into the webview.

IsLink

Return bool

Returns true if the drag data is a link.

IsFile

Return bool

Returns true if the drag data is a file.

IsFragment

Return bool

Returns true if the drag data is a text or html fragment.

GetLinkUrl

Return string

Return the link URL that is being dragged.

GetLinkTitle

Return string

Return the title associated with the link being dragged.

GetFileName

Return string

Return the name of the file being dragged out of the browser window.

GetFileNames

Return list

Return the list of file names that are being dragged into the browser window.

GetFragmentText

Return string

Return the plain text fragment that is being dragged.

GetFragmentHtml

Return string

Return the text/html fragment that is being dragged.

GetImage

Return Image

Linux-only currently (#251).

Get image representation of drag data. Check with HasImage() first, otherwise if there is no image an exception is thrown.

GetImageHotspot

Return Image

Linux-only currently (#251).

Get image hotspot (drag start location relative to image dimensions).

HasImage

Return bool

Linux-only currently (#251).

Whether image representation of drag data is available.

SetFragmentText

text string
Return void

Set the plain text fragment that is being dragged.

SetFragmentHtml

html string
Return void

Set the text/html fragment that is being dragged.