Allow introspection of WindowBuilder attributes
Makes WindowAttributes public and adds window_attributes() getter to WindowBuilder. In version 0.27, the WindowAttributes struct was made private, but this removed the ability to introspect the default WindowBuilder values.
This commit is contained in:
parent
b457329003
commit
422c6b1987
8 changed files with 18 additions and 10 deletions
|
|
@ -1011,7 +1011,7 @@ impl<'a, T: 'static> InitData<'a, T> {
|
|||
win.set_enabled_buttons(attributes.enabled_buttons);
|
||||
|
||||
if attributes.fullscreen.is_some() {
|
||||
win.set_fullscreen(attributes.fullscreen);
|
||||
win.set_fullscreen(attributes.fullscreen.map(Into::into));
|
||||
force_window_active(win.window.0);
|
||||
} else {
|
||||
let size = attributes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue