mirror of
https://github.com/storytold/winit.git
synced 2026-11-29 01:35:59 +01:00
Make WindowAttributes private (#2134)
* Make `WindowAttributes` private, and move its documentation * Reorder WindowAttributes title and fullscreen to match method order
This commit is contained in:
1 parent
eec84ade86
commit
44288f6280
14 files changed
+74
-98
No files matched your search
@@ -70,7 +70,7 @@ impl Deref for Window {
|
||||
}
|
||||
|
||||
impl Window {
|
||||
pub fn new<T: 'static>(
|
||||
pub(crate) fn new<T: 'static>(
|
||||
_window_target: &EventLoopWindowTarget<T>,
|
||||
attributes: WindowAttributes,
|
||||
pl_attribs: PlatformSpecificWindowBuilderAttributes,
|
||||
|
||||
@@ -371,7 +371,7 @@ unsafe impl Send for UnownedWindow {}
|
||||
unsafe impl Sync for UnownedWindow {}
|
||||
|
||||
impl UnownedWindow {
|
||||
pub fn new(
|
||||
pub(crate) fn new(
|
||||
mut win_attribs: WindowAttributes,
|
||||
pl_attribs: PlatformSpecificWindowBuilderAttributes,
|
||||
) -> Result<(Arc<Self>, IdRef), RootOsError> {
|
||||
|
||||
Reference in new issue
Block a user