#include <Ultralight/ClipboardData.h>
A single clipboard value: empty, UTF-8 text, or raw bytes.
This is the variant value type of a ClipboardData entry. It converts between strings and buffers so you can pass either directly to ClipboardData::Set().
◆ ClipboardValue() [1/7]
◆ ClipboardValue() [2/7]
| ClipboardValue |
( |
std::nullptr_t | | ) |
|
Create an empty value (lets you pass nullptr where a value is expected).
◆ ClipboardValue() [3/7]
| ClipboardValue |
( |
const String & | text | ) |
|
◆ ClipboardValue() [4/7]
| ClipboardValue |
( |
const char * | text | ) |
|
Create a text value from a null-terminated UTF-8 string.
◆ ClipboardValue() [5/7]
Create a bytes value (a null buffer creates an empty value).
◆ ClipboardValue() [6/7]
| ClipboardValue |
( |
const ClipboardValue & | other | ) |
|
◆ ClipboardValue() [7/7]
| ClipboardValue |
( |
ClipboardValue && | other | ) |
|
|
noexcept |
Move constructor (other becomes empty).
◆ ~ClipboardValue()
◆ bytes()
Get the bytes (a null pointer when this value doesn't hold bytes).
◆ is_bytes()
Whether or not this value holds raw bytes.
◆ is_empty()
Whether or not this value is empty (neither text nor bytes).
◆ is_text()
Whether or not this value holds text.
◆ operator=() [1/2]
Move assignment (other becomes empty).
◆ operator=() [2/2]
◆ text()
Get the text (an empty string when this value doesn't hold text).
The documentation for this class was generated from the following file: