wxRuby Documentation Home

Wx::DataObjectComposite

DataObjectComposite is the simplest
DataObject derivation which may be used to support
multiple formats. It contains several
DataObjectSimple objects and supports any
format supported by at least one of them. Only one of these data objects is
preferred (the first one if not explicitly changed by using the second
parameter of Add) and its format determines
the preferred format of the composite data object as well.

See DataObject documentation for the reasons why you
might prefer to use DataObject directly instead of DataObjectComposite for
efficiency reasons.

Virtual functions to override

None, this class should be used directly.

Derived from

DataObject

See also

Clipboard and drag and drop overview,
DataObject,
DataObjectSimple,
FileDataObject,
TextDataObject,
BitmapDataObject

Methods

DataObjectComposite.new

DataObjectComposite#add

add( DataObjectSimple dataObject, Boolean preferred = false)

Adds the dataObject to the list of supported objects and it becomes the
preferred object if preferred is true.

[This page automatically generated from the Textile source at 2023-06-03 08:07:43 +0000]