|
KiCad PCB EDA Suite
|
#include <clipboard.h>
Public Attributes | |
| wxString | m_mimeType |
| wxMemoryBuffer | m_data |
| std::optional< wxBitmap > | m_image |
| Optional bitmap image to add to clipboard via wxBitmapDataObject. | |
| bool | m_useRawPngData = false |
| When true and m_mimeType is "image/png", m_data contains pre-encoded PNG bytes. | |
Definition at line 37 of file clipboard.h.
| wxMemoryBuffer CLIPBOARD_MIME_DATA::m_data |
Definition at line 40 of file clipboard.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| std::optional<wxBitmap> CLIPBOARD_MIME_DATA::m_image |
Optional bitmap image to add to clipboard via wxBitmapDataObject.
When set, SaveClipboard() adds this using the platform-native format (PNG on GTK, CF_DIB on Windows, TIFF on macOS).
Definition at line 45 of file clipboard.h.
| wxString CLIPBOARD_MIME_DATA::m_mimeType |
Definition at line 39 of file clipboard.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| bool CLIPBOARD_MIME_DATA::m_useRawPngData = false |
When true and m_mimeType is "image/png", m_data contains pre-encoded PNG bytes.
SaveClipboard() will add this via wxCustomDataObject as the preferred format, providing fast clipboard access for apps that support raw PNG data. m_image should also be set for compatibility with image editors.
Definition at line 51 of file clipboard.h.