tbx
0.7.6
|
Base class for data used on the clipboard. More...
#include <clipboard.h>
Public Member Functions | |
virtual int | size ()=0 |
The size of the data in bytes. More... | |
virtual const char * | data ()=0 |
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. | |
Base class for data used on the clipboard.
This class is used to provide the data to the clipboard at the time it is actually copied. The data can either be pre-populated or created when a copy of it is requested by calling size or data.
|
pure virtual |
The data to copy.
If the data is created on demand in a subclass, it must be created when this is called.
Implemented in tbx::ClipboardBytes, and tbx::ClipboardText.
|
pure virtual |
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.
Implemented in tbx::ClipboardBytes, and tbx::ClipboardText.