Add WindowBuilder::transparent

This is required to help hardware accelerated libraries like glutin
that accept WindowBuilder instead of RawWindowHandle, since the api
to access builder properties directly was removed.

Follow up to 44288f6.
This commit is contained in:
Kirill Chibisov 2022-06-12 09:53:28 +03:00 committed by GitHub
parent 3e0a544eb8
commit 8ef9fe44c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -278,6 +278,12 @@ impl WindowBuilder {
self
}
/// Get whether the window will support transparency.
#[inline]
pub fn transparent(&self) -> bool {
self.window.transparent
}
/// Sets whether the window should have a border, a title bar, etc.
///
/// The default is `true`.