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

Expand documentation of RawDisplayHandle #106

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

atsheehan
Copy link
Contributor

I came to this crate after reading about the recent changes to glutin. At a glance I didn't understand the difference between RawWindowHandle and RawDisplayHandle (or even what a display was), and the enums looked mostly the same.

After reading through this issue and digging through the structs, I have a better understanding of what each type represents, but I thought it would be useful to add a line clarifying the distinction between the two. I also added some examples of what external types may be represented for a few platforms.

I came to this crate after reading about the recent changes to
[`glutin`][0]. At a glance I didn't understand the difference between
`RawWindowHandle` and `RawDisplayHandle` (or even what a display was),
and the enums looked mostly the same.

After reading through this [issue][1] and digging through the structs, I
have a better understanding of what each type represents, but I thought
it would be useful to add a line clarifying the distinction between the
two. I also added some examples of what external types may be
represented for a few platforms.

[0]: https://github.com/rust-windowing/glutin/releases/tag/v0.30.0
[1]: rust-windowing#92
@Lokathor
Copy link
Contributor

Lokathor commented Jan 3, 2023

I love more docs, but rather than merge this immediately I'll leave it open for others to have a chance to speak up about the particular wording. I'll merge it sometime tomorrow (if i remember to) if no one else has objections.

@Lokathor Lokathor merged commit 05148f8 into rust-windowing:master Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants