Interface ICefDragData

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type ICefDragData = interface(ICefBaseRefCounted)

Description

Interface used to represent drag data. The functions of this interface may be called on any thread.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_drag_data_capi.h">CEF source file: /include/capi/cef_drag_data_capi.h (cef_drag_data_t))

Hierarchy

Overview

Methods

Public function Clone: ICefDragData;
Public function IsReadOnly: Boolean;
Public function IsLink: Boolean;
Public function IsFragment: Boolean;
Public function IsFile: Boolean;
Public function GetLinkUrl: ustring;
Public function GetLinkTitle: ustring;
Public function GetLinkMetadata: ustring;
Public function GetFragmentText: ustring;
Public function GetFragmentHtml: ustring;
Public function GetFragmentBaseUrl: ustring;
Public function GetFileName: ustring;
Public function GetFileContents(const writer: ICefStreamWriter): NativeUInt;
Public function GetFileNames(var names: TStrings): Integer;
Public function GetFilePaths(var paths: TStrings): Integer;
Public procedure SetLinkUrl(const url: ustring);
Public procedure SetLinkTitle(const title: ustring);
Public procedure SetLinkMetadata(const data: ustring);
Public procedure SetFragmentText(const text: ustring);
Public procedure SetFragmentHtml(const html: ustring);
Public procedure SetFragmentBaseUrl(const baseUrl: ustring);
Public procedure ResetFileContents;
Public procedure AddFile(const path, displayName: ustring);
Public procedure ClearFilenames;
Public function GetImage: ICefImage;
Public function GetImageHotspot: TCefPoint;
Public function HasImage: boolean;

Description

Methods

Public function Clone: ICefDragData;

Returns a copy of the current object.

Attributes
GUID['{FBB6A487-F633-4055-AB3E-6619EDE75683}']
Public function IsReadOnly: Boolean;

Returns true (1) if this object is read-only.

Public function IsLink: Boolean;

Returns true (1) if the drag data is a link.

Public function IsFragment: Boolean;

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

Public function IsFile: Boolean;

Returns true (1) if the drag data is a file.

Public function GetLinkUrl: ustring;

Return the link URL that is being dragged.

Public function GetLinkTitle: ustring;

Return the title associated with the link being dragged.

Public function GetLinkMetadata: ustring;

Return the metadata, if any, associated with the link being dragged.

Public function GetFragmentText: ustring;

Return the plain text fragment that is being dragged.

Public function GetFragmentHtml: ustring;

Return the text/html fragment that is being dragged.

Public function GetFragmentBaseUrl: ustring;

Return the base URL that the fragment came from. This value is used for resolving relative URLs and may be NULL.

Public function GetFileName: ustring;

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

Public function GetFileContents(const writer: ICefStreamWriter): NativeUInt;

Write the contents of the file being dragged out of the web view into |writer|. Returns the number of bytes sent to |writer|. If |writer| is NULL this function will return the size of the file contents in bytes. Call get_file_name() to get a suggested name for the file.

Public function GetFileNames(var names: TStrings): Integer;

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

Public function GetFilePaths(var paths: TStrings): Integer;

Retrieve the list of file paths that are being dragged into the browser window.

Public procedure SetLinkUrl(const url: ustring);

Set the link URL that is being dragged.

Public procedure SetLinkTitle(const title: ustring);

Set the title associated with the link being dragged.

Public procedure SetLinkMetadata(const data: ustring);

Set the metadata associated with the link being dragged.

Public procedure SetFragmentText(const text: ustring);

Set the plain text fragment that is being dragged.

Public procedure SetFragmentHtml(const html: ustring);

Set the text/html fragment that is being dragged.

Public procedure SetFragmentBaseUrl(const baseUrl: ustring);

Set the base URL that the fragment came from.

Public procedure ResetFileContents;

Reset the file contents. You should do this before calling ICefBrowserHost.DragTargetDragEnter as the web view does not allow us to drag in this kind of data.

Public procedure AddFile(const path, displayName: ustring);

Add a file that is being dragged into the webview.

Public procedure ClearFilenames;

Clear list of filenames.

Public function GetImage: ICefImage;

Get the image representation of drag data. May return NULL if no image representation is available.

Public function GetImageHotspot: TCefPoint;

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

Public function HasImage: boolean;

Returns true (1) if an image representation of drag data is available.


Generated by PasDoc 0.16.0-snapshot.