Class: Wx::DataObject
- Inherits:
-
Object
- Object
- Wx::DataObject
- Defined in:
- lib/wx/classes/data_object.rb
Overview
Provide some default implementations of these to make life easier
Instance Method Summary collapse
- #get_data_size(format) ⇒ Object
- #get_format_count(direction) ⇒ Object
- #get_preferred_format(direction) ⇒ Object
Instance Method Details
#get_data_size(format) ⇒ Object
11 12 13 |
# File 'lib/wx/classes/data_object.rb', line 11 def get_data_size(format) get_data_here(format).size end |
#get_format_count(direction) ⇒ Object
7 8 9 |
# File 'lib/wx/classes/data_object.rb', line 7 def get_format_count(direction) get_all_formats(direction).length end |
#get_preferred_format(direction) ⇒ Object
3 4 5 |
# File 'lib/wx/classes/data_object.rb', line 3 def get_preferred_format(direction) get_all_formats(direction).first end |