pub struct WINDOWS_DIALOG;Expand description
Windows dialog service integration.
Implementations§
Source§impl WINDOWS_DIALOG
impl WINDOWS_DIALOG
Sourcepub fn native_message_dialog(
&self,
window_id: impl Into<WindowId>,
dialog: MsgDialog,
) -> ResponseVar<MsgDialogResponse>
pub fn native_message_dialog( &self, window_id: impl Into<WindowId>, dialog: MsgDialog, ) -> ResponseVar<MsgDialogResponse>
Show a native message dialog for the window.
The dialog can be modal in the view-process, in the app-process it is always async, the response var will update once when the user responds to the dialog.
Consider using the DIALOG service instead of the method directly.
Sourcepub fn native_file_dialog(
&self,
window_id: impl Into<WindowId>,
dialog: FileDialog,
) -> ResponseVar<FileDialogResponse>
pub fn native_file_dialog( &self, window_id: impl Into<WindowId>, dialog: FileDialog, ) -> ResponseVar<FileDialogResponse>
Show a native file dialog for the window.
The dialog can be modal in the view-process, in the app-process it is always async, the response var will update once when the user responds to the dialog.
Consider using the DIALOG service instead of the method directly.
Sourcepub fn available_operations(&self) -> WindowCapability
pub fn available_operations(&self) -> WindowCapability
Window operations supported by the current view-process instance for headed windows.
Not all window operations may be available, depending on the operating system and build. When an operation is not available an error is logged and otherwise ignored.
Auto Trait Implementations§
impl Freeze for WINDOWS_DIALOG
impl RefUnwindSafe for WINDOWS_DIALOG
impl Send for WINDOWS_DIALOG
impl Sync for WINDOWS_DIALOG
impl Unpin for WINDOWS_DIALOG
impl UnwindSafe for WINDOWS_DIALOG
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more