Fix WindowBuilder function names that missed first pass (#910)

This commit is contained in:
Osspial 2019-06-12 13:34:09 -04:00 committed by GitHub
parent f256ff7d58
commit 2b89ddec15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ fn main() {
let event_loop = EventLoop::new();
let window = WindowBuilder::new().with_decorations(false)
.with_transparency(true)
.with_transparent(true)
.build(&event_loop).unwrap();
window.set_title("A fantastic window!");

View file

@ -234,14 +234,14 @@ impl WindowBuilder {
/// Sets whether the window will be initially hidden or visible.
#[inline]
pub fn with_visibility(mut self, visible: bool) -> WindowBuilder {
pub fn with_visible(mut self, visible: bool) -> WindowBuilder {
self.window.visible = visible;
self
}
/// Sets whether the background of the window should be transparent.
#[inline]
pub fn with_transparency(mut self, transparent: bool) -> WindowBuilder {
pub fn with_transparent(mut self, transparent: bool) -> WindowBuilder {
self.window.transparent = transparent;
self
}