1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Update viewports example, and added documentation for Window::default_embedded

This commit is contained in:
Konkitoman
2023-08-09 20:16:35 +03:00
parent 20b3e16f4b
commit 48646ef521
2 changed files with 139 additions and 158 deletions

View File

@@ -80,6 +80,9 @@ impl<'open> Window<'open> {
self
}
/// This will only be used on window creation!
/// If embedded is false the window will be a native window, if is possibile
/// Look at `Context::is_desktop` to see if is possible to create a native window!
pub fn default_embedded(mut self, embedded: bool) -> Self {
self.default_embedded = embedded;
self