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:
parent
eec84ade86
commit
44288f6280
14 changed files with 74 additions and 98 deletions
|
|
@ -429,7 +429,7 @@ unsafe fn get_window_class() -> &'static Class {
|
|||
}
|
||||
|
||||
// requires main thread
|
||||
pub unsafe fn create_view(
|
||||
pub(crate) unsafe fn create_view(
|
||||
_window_attributes: &WindowAttributes,
|
||||
platform_attributes: &PlatformSpecificWindowBuilderAttributes,
|
||||
frame: CGRect,
|
||||
|
|
@ -449,7 +449,7 @@ pub unsafe fn create_view(
|
|||
}
|
||||
|
||||
// requires main thread
|
||||
pub unsafe fn create_view_controller(
|
||||
pub(crate) unsafe fn create_view_controller(
|
||||
_window_attributes: &WindowAttributes,
|
||||
platform_attributes: &PlatformSpecificWindowBuilderAttributes,
|
||||
view: id,
|
||||
|
|
@ -505,7 +505,7 @@ pub unsafe fn create_view_controller(
|
|||
}
|
||||
|
||||
// requires main thread
|
||||
pub unsafe fn create_window(
|
||||
pub(crate) unsafe fn create_window(
|
||||
window_attributes: &WindowAttributes,
|
||||
_platform_attributes: &PlatformSpecificWindowBuilderAttributes,
|
||||
frame: CGRect,
|
||||
|
|
|
|||
|
|
@ -375,7 +375,7 @@ impl DerefMut for Window {
|
|||
}
|
||||
|
||||
impl Window {
|
||||
pub fn new<T>(
|
||||
pub(crate) fn new<T>(
|
||||
_event_loop: &EventLoopWindowTarget<T>,
|
||||
window_attributes: WindowAttributes,
|
||||
platform_attributes: PlatformSpecificWindowBuilderAttributes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue