cef_drag_data_t

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

version(cef && embedded_cef_bindings)
extern (C)
struct cef_drag_data_t {
extern (System)
cef_drag_data_t* function(cef_drag_data_t* self) nothrow clone;
extern (System)
int function(cef_drag_data_t* self) nothrow is_read_only;
extern (System)
int function(cef_drag_data_t* self) nothrow is_link;
extern (System)
int function(cef_drag_data_t* self) nothrow is_fragment;
extern (System)
int function(cef_drag_data_t* self) nothrow is_file;
}

Members

Variables

add_file
void function(cef_drag_data_t* self, const(cef_string_t)* path, const(cef_string_t)* display_name) nothrow add_file;

Add a file that is being dragged into the webview.

base
cef_base_ref_counted_t base;

Base structure.

clear_filenames
void function(cef_drag_data_t* self) nothrow clear_filenames;

Clear list of filenames.

get_file_contents
size_t function(cef_drag_data_t* self, cef_stream_writer_t* writer) nothrow get_file_contents;

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.

get_file_name
cef_string_userfree_t function(cef_drag_data_t* self) nothrow get_file_name;

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

get_file_names
int function(cef_drag_data_t* self, cef_string_list_t names) nothrow get_file_names;

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

get_file_paths
int function(cef_drag_data_t* self, cef_string_list_t paths) nothrow get_file_paths;

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

get_fragment_base_url
cef_string_userfree_t function(cef_drag_data_t* self) nothrow get_fragment_base_url;

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

get_fragment_html
cef_string_userfree_t function(cef_drag_data_t* self) nothrow get_fragment_html;

Return the text/html fragment that is being dragged.

get_fragment_text
cef_string_userfree_t function(cef_drag_data_t* self) nothrow get_fragment_text;

Return the plain text fragment that is being dragged.

get_image
cef_image_t* function(cef_drag_data_t* self) nothrow get_image;

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

get_image_hotspot
cef_point_t function(cef_drag_data_t* self) nothrow get_image_hotspot;

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

get_link_metadata
cef_string_userfree_t function(cef_drag_data_t* self) nothrow get_link_metadata;

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

get_link_title
cef_string_userfree_t function(cef_drag_data_t* self) nothrow get_link_title;

Return the title associated with the link being dragged.

get_link_url
cef_string_userfree_t function(cef_drag_data_t* self) nothrow get_link_url;

Return the link URL that is being dragged.

has_image
int function(cef_drag_data_t* self) nothrow has_image;

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

reset_file_contents
void function(cef_drag_data_t* self) nothrow reset_file_contents;

Reset the file contents. You should do this before calling

set_fragment_base_url
void function(cef_drag_data_t* self, const(cef_string_t)* base_url) nothrow set_fragment_base_url;

Set the base URL that the fragment came from.

set_fragment_html
void function(cef_drag_data_t* self, const(cef_string_t)* html) nothrow set_fragment_html;

Set the text/html fragment that is being dragged.

set_fragment_text
void function(cef_drag_data_t* self, const(cef_string_t)* text) nothrow set_fragment_text;

Set the plain text fragment that is being dragged.

set_link_metadata
void function(cef_drag_data_t* self, const(cef_string_t)* data) nothrow set_link_metadata;

Set the metadata associated with the link being dragged.

set_link_title
void function(cef_drag_data_t* self, const(cef_string_t)* title) nothrow set_link_title;

Set the title associated with the link being dragged.

set_link_url
void function(cef_drag_data_t* self, const(cef_string_t)* url) nothrow set_link_url;

Set the link URL that is being dragged.

Meta