Class: Wx::FileDataObject
- Inherits:
-
DataObjectSimple
- Object
- DataObject
- DataObjectSimple
- Wx::FileDataObject
- 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
-
#add_file(file) ⇒ void
Adds a file to the file list represented by this data object (Windows only).
-
#get_filenames ⇒ Wx::ArrayString
(also: #filenames)
Returns the array of file names.
-
#initialize ⇒ Wx::FileDataObject
constructor
Constructor.
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
#initialize ⇒ Wx::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).
292 |
# File 'lib/wx/doc/gen/data_object.rb', line 292 def add_file(file) end |
#get_filenames ⇒ Wx::ArrayString Also known as: filenames
Returns the array of file names.
296 |
# File 'lib/wx/doc/gen/data_object.rb', line 296 def get_filenames; end |