diff --git a/README.md b/README.md index 59b7f23b..b9bbd112 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ fn main() { cx.open_window(WindowOptions::default(), |window, cx| { let view = cx.new(|_| HelloWorld); // This first level on the window, should be a Root. - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) })?; Ok::<_, anyhow::Error>(()) diff --git a/docs/docs/assets.md b/docs/docs/assets.md index f7ccf224..231759c6 100644 --- a/docs/docs/assets.md +++ b/docs/docs/assets.md @@ -66,7 +66,7 @@ fn main() { cx.open_window(WindowOptions::default(), |window, cx| { let view = cx.new(|_| Example); // The first level on the window must be Root. - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) })?; Ok::<_, anyhow::Error>(()) diff --git a/docs/docs/getting-started.md b/docs/docs/getting-started.md index b5be1163..3e3ea697 100644 --- a/docs/docs/getting-started.md +++ b/docs/docs/getting-started.md @@ -55,7 +55,7 @@ fn main() { cx.open_window(WindowOptions::default(), |window, cx| { let view = cx.new(|_| HelloWorld); // This first level on the window, should be a Root. - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) })?; Ok::<_, anyhow::Error>(()) diff --git a/docs/docs/index.md b/docs/docs/index.md index 62c5586e..de62b3d5 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -69,7 +69,7 @@ fn main() { cx.open_window(WindowOptions::default(), |window, cx| { let view = cx.new(|_| HelloWorld); // This first level on the window, should be a Root. - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) })?; Ok::<_, anyhow::Error>(()) diff --git a/docs/docs/root.md b/docs/docs/root.md index 87709780..0386c5b2 100644 --- a/docs/docs/root.md +++ b/docs/docs/root.md @@ -20,7 +20,7 @@ fn main() { cx.open_window(WindowOptions::default(), |window, cx| { let view = cx.new(|_| Example); // This first level on the window, should be a Root. - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) })?; Ok::<_, anyhow::Error>(()) diff --git a/docs/index.md b/docs/index.md index 56e5f9d9..e7d72959 100644 --- a/docs/index.md +++ b/docs/index.md @@ -73,7 +73,7 @@ fn main() { cx.open_window(WindowOptions::default(), |window, cx| { let view = cx.new(|_| HelloWorld); // This first level on the window, should be a Root. - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) })?; Ok::<_, anyhow::Error>(()) diff --git a/examples/dialog_overlay/src/main.rs b/examples/dialog_overlay/src/main.rs index 0c0a6399..11b55dbb 100644 --- a/examples/dialog_overlay/src/main.rs +++ b/examples/dialog_overlay/src/main.rs @@ -92,7 +92,7 @@ fn main() { |window, cx| { let view = cx.new(|_| HelloWorld); // This first level on the window, should be a Root. - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) }, )?; diff --git a/examples/hello_world/src/main.rs b/examples/hello_world/src/main.rs index bbce8d0e..a4a2a80d 100644 --- a/examples/hello_world/src/main.rs +++ b/examples/hello_world/src/main.rs @@ -31,7 +31,7 @@ fn main() { cx.open_window(WindowOptions::default(), |window, cx| { let view = cx.new(|_| Example); // This first level on the window, should be a Root. - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) })?; Ok::<_, anyhow::Error>(()) diff --git a/examples/input/src/main.rs b/examples/input/src/main.rs index f8933dbc..72a4f161 100644 --- a/examples/input/src/main.rs +++ b/examples/input/src/main.rs @@ -68,7 +68,7 @@ fn main() { cx.open_window(window_options, |window, cx| { let view = cx.new(|cx| Example::new(window, cx)); // This first level on the window, should be a Root. - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) })?; Ok::<_, anyhow::Error>(()) diff --git a/examples/window_title/src/main.rs b/examples/window_title/src/main.rs index 56dd02ae..44f6c515 100644 --- a/examples/window_title/src/main.rs +++ b/examples/window_title/src/main.rs @@ -79,7 +79,7 @@ fn main() { cx.open_window(window_options, |window, cx| { let view = cx.new(|_| Example); - cx.new(|cx| Root::new(view.into(), window, cx)) + cx.new(|cx| Root::new(view, window, cx)) })?; Ok::<_, anyhow::Error>(())