pub struct Window { /* private fields */ }
Expand description
A reference to a Window. Use this to perform certain actions at runtime. If you want to modify the look and feel, use] WindowConfiguration.
Implementations§
Source§impl Window
impl Window
Sourcepub fn create_dialog(&self, text: impl Into<Cow<'static, str>>) -> DialogBuilder
pub fn create_dialog(&self, text: impl Into<Cow<'static, str>>) -> DialogBuilder
Creates a new dialog. Use the DialogBuilder
to set additional
properties, before calling DialogBuilder::show()
.
§Example
ⓘ
let window: Window;
window.create_dialog("My important message")
.title("Important App")
.show();
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Window
impl !RefUnwindSafe for Window
impl Unpin for Window
impl !UnwindSafe for Window
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more