22#ifndef COMPOSITEDATAOBJECT_H
23#define COMPOSITEDATAOBJECT_H
25#include <wx/clipbrd.h>
43 void Add(wxDataObject *
object,
bool preferred =
false);
44 wxDataObject *GetObject(
const wxDataFormat& format,
45 wxDataObjectBase::Direction dir = Get)
const;
46 wxDataFormat GetPreferredFormat(Direction dir = Get)
const override;
47 void SetPreferredFormat(
const wxDataFormat &format);
49 size_t GetFormatCount(Direction dir = Get)
const override;
50 void GetAllFormats(wxDataFormat *formats, Direction dir = Get)
const override;
51 size_t GetDataSize(
const wxDataFormat &format)
const override;
52 bool GetDataHere(
const wxDataFormat &format,
void *buf)
const override;
55 const void* GetSizeFromBuffer(
const void* buffer,
size_t* size,
56 const wxDataFormat& format)
override;
57 void* SetSizeInBuffer(
void* buffer,
size_t size,
const wxDataFormat& format)
override;
58 size_t GetBufferOffset(
const wxDataFormat& format)
override;
65 std::shared_ptr<wxDataObject> object;
66 Entry(
const wxDataFormat &format, std::shared_ptr<wxDataObject>
object) :
67 format(format), object(std::move(
object)) {}
69 std::vector<Entry> m_entries;
70 wxDataFormat m_preferredFormat;
A composite data object like wxDataObjectComposite, but accepts also non-simple data objects....
Definition: CompositeDataObject.h:38