wxMaxima
Loading...
Searching...
No Matches
Public Member Functions
LazyBitmapDataObject Class Referencefinal

A bitmap that is only drawn when a program asks for it. More...

#include <ClipboardContents.h>

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

Public Member Functions

 LazyBitmapDataObject (std::shared_ptr< const LazyValue< wxBitmap > > bitmap)
 
wxBitmap GetBitmap () const override
 
size_t GetDataSize () const override
 
bool GetDataHere (void *buf) const override
 
size_t GetDataSize (const wxDataFormat &format) const override
 
bool GetDataHere (const wxDataFormat &format, void *buf) const override
 

Detailed Description

A bitmap that is only drawn when a program asks for it.

wxBitmapDataObject is platform-specific (PNG on GTK, a HBITMAP or DIB on Windows), so rather than reimplementing any of that this hands the rendered bitmap to the base class the first time any of its data is asked for, and lets it do the rest.


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