Class: Wx::ImageDataObject

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

Overview

ImageDataObject is a specialization of DataObject for image data.

It can be used e.g. when you need to put on and retrieve from the clipboard a Image with its metadata (like image resolution).

Category: Clipboard and Drag & Drop

See Also:

Requires:

  • USE_CLIPBOARD

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

#initialize(image = Wx::NULL_IMAGE) ⇒ Wx::ImageDataObject

Constructor, optionally passing an image (otherwise use #set_image later).

Parameters:

  • image (Wx::Image) (defaults to: Wx::NULL_IMAGE)


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

def initialize(image=Wx::NULL_IMAGE) end

Instance Method Details

#get_imageWx::Image Also known as: image

Returns the image associated with the data object.

Returns:



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

def get_image; end

#set_image(image) ⇒ void Also known as: image=

This method returns an undefined value.

Sets the image stored by the data object.

Parameters:



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

def set_image(image) end