tbx
0.7.6
|
Convenience class to create clipboard data for an array of bytes. More...
#include <clipboard.h>
Public Member Functions | |
ClipboardBytes (char *bytes, int size, bool copy=true) | |
Construct a clipboard data object to hold an array of bytes. More... | |
int | size () |
The size of the data in bytes. More... | |
const char * | data () |
The data to copy. More... | |
![]() | |
virtual void | copy_started () |
Called when data is about to be copied to another application from via clipboard. | |
virtual void | copy_finished () |
Called when a copy of the data has finished. | |
Convenience class to create clipboard data for an array of bytes.
INTERNAL tbx::ClipboardBytes::ClipboardBytes | ( | char * | bytes, |
int | size, | ||
bool | copy = true |
||
) |
Construct a clipboard data object to hold an array of bytes.
bytes | the bytes to store on the clipboard (see copy flag for ownership) |
size | number of bytes to store on the clipboard |
copy | true (the default) to make a copy of the given bytes. false take ownership of the bytes. This class will delete them when no longer required (they must have been allocated with new[]. |
|
inlinevirtual |
The data to copy.
If the data is created on demand in a subclass, it must be created when this is called.
Implements tbx::ClipboardData.
|
inlinevirtual |
The size of the data in bytes.
If the data is created on demand in a subclass the size at least must be calculated when this is called.
Implements tbx::ClipboardData.