Class: Wx::FileDataObject

Inherits:
DataObjectSimple show all
Defined in:
lib/wx/doc/gen/data_object.rb

Overview

FileDataObject is a specialization of DataObject for file names.

The program works with it just as if it were a list of absolute file names, but internally it uses the same format as Explorer and other compatible programs under Windows or GNOME/KDE file manager under Unix which makes it possible to receive files from them using this class.

Category: Clipboard and Drag & Drop

Instance Method Summary collapse

Methods inherited from DataObjectSimple

#get_data_here, #get_data_size, #get_format, #set_data

Methods inherited from DataObject

#get_all_formats, #get_data_here, #get_data_size, #get_format_count, #get_preferred_format, #is_supported, #set_data

Constructor Details

#initializeWx::FileDataObject

Constructor.



287
# File 'lib/wx/doc/gen/data_object.rb', line 287

def initialize; end

Instance Method Details

#add_file(file) ⇒ void

This method returns an undefined value.

Adds a file to the file list represented by this data object (Windows only).

Parameters:

  • file (String)


292
# File 'lib/wx/doc/gen/data_object.rb', line 292

def add_file(file) end

#get_filenamesWx::ArrayString Also known as: filenames

Returns the array of file names.

Returns:

  • (Wx::ArrayString)


296
# File 'lib/wx/doc/gen/data_object.rb', line 296

def get_filenames; end