# Class TCefDragDataRef

Description
Hierarchy
Methods

## Unit

uCEFDragData

## Declaration

`type TCefDragDataRef = class(TCefBaseRefCountedRef, ICefDragData)`

## Description

This item has no description.

## Hierarchy

- TInterfacedObject
- TCefBaseRefCountedRef
- TCefDragDataRef

## Overview

### Methods

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

## Description

### Methods

Protected | `function Clone: ICefDragData;`
This item has no description. Showing description inherited from ICefDragData.Clone. Returns a copy of the current object.

Protected | `function IsReadOnly: Boolean;`
This item has no description. Showing description inherited from ICefDragData.IsReadOnly. Returns true (1) if this object is read-only.

Protected | `function IsLink: Boolean;`
This item has no description. Showing description inherited from ICefDragData.IsLink. Returns true (1) if the drag data is a link.

Protected | `function IsFragment: Boolean;`
This item has no description. Showing description inherited from ICefDragData.IsFragment. Returns true (1) if the drag data is a text or html fragment.

Protected | `function IsFile: Boolean;`
This item has no description. Showing description inherited from ICefDragData.IsFile. Returns true (1) if the drag data is a file.

Protected | `function GetLinkUrl: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetLinkUrl. Return the link URL that is being dragged.

Protected | `function GetLinkTitle: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetLinkTitle. Return the title associated with the link being dragged.

Protected | `function GetLinkMetadata: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetLinkMetadata. Return the metadata, if any, associated with the link being dragged.

Protected | `function GetFragmentText: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetFragmentText. Return the plain text fragment that is being dragged.

Protected | `function GetFragmentHtml: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetFragmentHtml. Return the text/html fragment that is being dragged.

Protected | `function GetFragmentBaseUrl: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetFragmentBaseUrl. Return the base URL that the fragment came from. This value is used for resolving relative URLs and may be NULL.

Protected | `function GetFileName: ustring;`
This item has no description. Showing description inherited from ICefDragData.GetFileName. Return the name of the file being dragged out of the browser window.

Protected | `function GetFileContents(const writer: ICefStreamWriter): NativeUInt;`
This item has no description. Showing description inherited from ICefDragData.GetFileContents. 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.

Protected | `function GetFileNames(var names: TStrings): Integer;`
This item has no description. Showing description inherited from ICefDragData.GetFileNames. Retrieve the list of file names that are being dragged into the browser window.

Protected | `function GetFilePaths(var paths: TStrings): Integer;`
This item has no description. Showing description inherited from ICefDragData.GetFilePaths. Retrieve the list of file paths that are being dragged into the browser window.

Protected | `procedure SetLinkUrl(const url: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetLinkUrl. Set the link URL that is being dragged.

Protected | `procedure SetLinkTitle(const title: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetLinkTitle. Set the title associated with the link being dragged.

Protected | `procedure SetLinkMetadata(const data: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetLinkMetadata. Set the metadata associated with the link being dragged.

Protected | `procedure SetFragmentText(const text: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetFragmentText. Set the plain text fragment that is being dragged.

Protected | `procedure SetFragmentHtml(const html: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetFragmentHtml. Set the text/html fragment that is being dragged.

Protected | `procedure SetFragmentBaseUrl(const baseUrl: ustring);`
This item has no description. Showing description inherited from ICefDragData.SetFragmentBaseUrl. Set the base URL that the fragment came from.

Protected | `procedure ResetFileContents;`
This item has no description. Showing description inherited from ICefDragData.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.

Protected | `procedure AddFile(const path, displayName: ustring);`
This item has no description. Showing description inherited from ICefDragData.AddFile. Add a file that is being dragged into the webview.

Protected | `procedure ClearFilenames;`
This item has no description. Showing description inherited from ICefDragData.ClearFilenames. Clear list of filenames.

Protected | `function GetImage: ICefImage;`
This item has no description. Showing description inherited from ICefDragData.GetImage. Get the image representation of drag data. May return NULL if no image representation is available.

Protected | `function GetImageHotspot: TCefPoint;`
This item has no description. Showing description inherited from ICefDragData.GetImageHotspot. Get the image hotspot (drag start location relative to image dimensions).

Protected | `function HasImage: boolean;`
This item has no description. Showing description inherited from ICefDragData.HasImage. Returns true (1) if an image representation of drag data is available.

Public | `class function UnWrap(data: Pointer): ICefDragData;`
This item has no description.

Public | `class function New: ICefDragData;`
This item has no description.

Generated by PasDoc 1.0.4.