wxMaxima
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
LazyPngDataObject Class Referencefinal

The same bitmap, as PNG bytes, for ports that can only hand over bytes. More...

#include <ClipboardContents.h>

Inheritance diagram for LazyPngDataObject:
[legend]
Collaboration diagram for LazyPngDataObject:
[legend]

Public Member Functions

 LazyPngDataObject (std::shared_ptr< const LazyValue< wxBitmap > > bitmap)
 
size_t GetDataSize () const override
 
bool GetDataHere (void *buf) const override
 
bool SetData (size_t len, const void *buf) override
 Pasting into a LazyPngDataObject is not supported.
 

Static Public Member Functions

static wxDataFormat GetDataFormat ()
 The format this is offered under: image/png.
 

Detailed Description

The same bitmap, as PNG bytes, for ports that can only hand over bytes.

wxQt turns a bitmap into clipboard image data in wxBitmapDataObject::QtAddDataTo(), which only runs when the bitmap is the whole clipboard contents. Inside a composite, wxDataObject::QtAddDataTo() asks every format for its bytes instead, and a bitmap has none to give, so the image reaches no other program at all. PNG bytes are handed over unchanged, and every image editor reads them.


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