KiCad PCB EDA Suite
Loading...
Searching...
No Matches
CLIPBOARD_MIME_DATA Struct Reference

#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.
 

Detailed Description

Definition at line 37 of file clipboard.h.

Member Data Documentation

◆ m_data

◆ m_image

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.

◆ m_mimeType

◆ m_useRawPngData

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.


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