We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to be able to get an epaint::ColorImage into the system clipboard, both on native and web, via egui and eframe.
epaint::ColorImage
Currently what is being copied is stored in PlatformOutput::copied_text.
PlatformOutput::copied_text
The simple/hacky solution would be to simply add a copied_image: Option<ColorImage> to PlatformOutput.
copied_image: Option<ColorImage>
PlatformOutput
A nicer solution is to deprecate copied_text and open_url and replace them with something like commands: Vec<OutputCommand> with
copied_text
open_url
commands: Vec<OutputCommand>
enum OutputCommand { CopyText(String), CopyImage(ColorImage), OpenUrl(OpenUrl) }
On native we can use arboard::Clipboard.
arboard::Clipboard
On web we can use the Clipboard API:
Clipboard
const item = new ClipboardItem({ "image/png": png_blob }); await navigator.clipboard.write([item]);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would like to be able to get an
epaint::ColorImage
into the system clipboard, both on native and web, via egui and eframe.Implementation
egui
Currently what is being copied is stored in
PlatformOutput::copied_text
.The simple/hacky solution would be to simply add a
copied_image: Option<ColorImage>
toPlatformOutput
.A nicer solution is to deprecate
copied_text
andopen_url
and replace them with something likecommands: Vec<OutputCommand>
witheframe
On native we can use
arboard::Clipboard
.On web we can use the
Clipboard
API:Related
The text was updated successfully, but these errors were encountered: