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:
parent
3e0a544eb8
commit
8ef9fe44c7
2 changed files with 7 additions and 0 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue