Skip to content
New issue

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

Discussion: Clipboard API #704

Closed
Osspial opened this issue Nov 13, 2018 · 3 comments
Closed

Discussion: Clipboard API #704

Osspial opened this issue Nov 13, 2018 · 3 comments
Labels
C - needs discussion Direction must be ironed out S - api Design and usability

Comments

@Osspial
Copy link
Contributor

Osspial commented Nov 13, 2018

As per #162 and #695, we've decided that Winit should support clipboard handling. This issue is intended to house discussion on the API.

Discussion points:

  • In most cases, data that can be copied can also be dragged and dropped. To what extent should this be unified with the drag/drop API?
  • Clipboards can contain quite a few types of content (e.g. text, images, sounds, files). How do we want to handle these clipboard data formats? When do we want to distinguish between formats, and when do we want to map multiple OS formats onto one exposed format?
    • Additionally, some OSes support data sub-types. How do we want to expose those?
      • Windows lets you copy HTML snippets for rich text, and Wayland supports full MIME specification.
  • Oftentimes, clipboard data can include the same data in multiple formats (e.g. words in a plain-text vs a rich-text format). How do we handle this?
    • Similarly, how do we allow people to upload the same data in different formats to the clipboard?
@Osspial
Copy link
Contributor Author

Osspial commented Nov 14, 2018

Also, how do we want to handle custom clipboard data formats? Supporting this would allow applications to use the system clipboard to store non-standard data, like mesh data in a 3D modeling app, which can be quite useful. It can also be used to embed application-specific metadata alongside standard formats - for example, Sublime Text embeds language information in a sublime-text-extra format.

@francesca64 francesca64 added S - api Design and usability C - needs discussion Direction must be ironed out labels Nov 17, 2018
@Osspial
Copy link
Contributor Author

Osspial commented Dec 31, 2018

I'm closing this, since we've since decided against having a clipboard API.

@madsmtm
Copy link
Member

madsmtm commented Jan 27, 2022

We're discussing this again in #2156, for the people following this issue, feel free to drop by and give input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - needs discussion Direction must be ironed out S - api Design and usability
Development

No branches or pull requests

3 participants