Molybden API
Loading...
Searching...
No Matches
molybden::ClipboardData Class Referenceabstract

Represents the system clipboard data. More...

#include <clipboard_data.hpp>

Public Member Functions

virtual std::shared_ptr< ClipboardDataTypetype () const =0
 Returns the type of the clipboard data.
 
virtual size_t size () const =0
 Returns the size of the clipboard data.
 
virtual const char * data () const =0
 Returns the clipboard data.
 

Static Public Member Functions

static std::shared_ptr< ClipboardDatacreate (std::shared_ptr< ClipboardDataType > type, const std::string &data)
 Creates a new clipboard data with the given type and data.
 
static std::shared_ptr< ClipboardDatacreate (std::shared_ptr< ClipboardDataType > type, const char *data, size_t length)
 Creates a new clipboard data with the given type and data.
 

Detailed Description

Represents the system clipboard data.

Member Function Documentation

◆ create() [1/2]

static std::shared_ptr< ClipboardData > molybden::ClipboardData::create ( std::shared_ptr< ClipboardDataType type,
const char *  data,
size_t  length 
)
static

Creates a new clipboard data with the given type and data.

Parameters
typethe type of the clipboard data
datathe clipboard data
lengththe length of the clipboard data

◆ create() [2/2]

static std::shared_ptr< ClipboardData > molybden::ClipboardData::create ( std::shared_ptr< ClipboardDataType type,
const std::string &  data 
)
static

Creates a new clipboard data with the given type and data.

Parameters
typethe type of the clipboard data
datathe clipboard data

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