tbx  0.7.6
Public Member Functions | List of all members
tbx::ClipboardText Class Reference

Convenience class to create clipboard data containing a string. More...

#include <clipboard.h>

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

Public Member Functions

 ClipboardText (const std::string &text)
 
int size ()
 The size of the data in bytes. More...
 
const char * data ()
 The data to copy. More...
 
- Public Member Functions inherited from tbx::ClipboardData
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

Convenience class to create clipboard data containing a string.

Member Function Documentation

◆ data()

const char* tbx::ClipboardText::data ( )
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.

◆ size()

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


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