tbx  0.7.6
Public Member Functions | List of all members
tbx::ClipboardData Class Referenceabstract

Base class for data used on the clipboard. More...

#include <clipboard.h>

Inheritance diagram for tbx::ClipboardData:
tbx::ClipboardBytes tbx::ClipboardText

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.
 

Detailed Description

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.

Member Function Documentation

◆ data()

virtual const char* tbx::ClipboardData::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.

◆ size()

virtual int tbx::ClipboardData::size ( )
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.


The documentation for this class was generated from the following file: