1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibGUI: Add a Clipboard API for retrieving a copied Gfx::Bitmap

The returned bitmap is always going to be a 32-bit RGBA bitmap for now.
In the future we may want to support copy-pasting other formats.
This commit is contained in:
Andreas Kling 2020-09-05 16:52:35 +02:00
parent 2e6d59b7b2
commit 158f3b9362
2 changed files with 44 additions and 1 deletions

View file

@ -48,6 +48,7 @@ public:
}
void set_bitmap(const Gfx::Bitmap&);
RefPtr<Gfx::Bitmap> bitmap() const;
struct DataAndType {
ByteBuffer data;