Enum i_slint_core::api::CloseRequestResponse
source · #[repr(C)]
pub enum CloseRequestResponse {
HideWindow,
KeepWindowShown,
}Expand description
This enum describes whether a Window is allowed to be hidden when the user tries to close the window. It is the return type of the callback provided to Window::on_close_requested.
Variants§
HideWindow
The Window will be hidden (default action)
KeepWindowShown
The close request is rejected and the window will be kept shown.
Trait Implementations§
source§impl Clone for CloseRequestResponse
impl Clone for CloseRequestResponse
source§fn clone(&self) -> CloseRequestResponse
fn clone(&self) -> CloseRequestResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CloseRequestResponse
impl Debug for CloseRequestResponse
source§impl Default for CloseRequestResponse
impl Default for CloseRequestResponse
source§fn default() -> CloseRequestResponse
fn default() -> CloseRequestResponse
Returns the “default value” for a type. Read more
source§impl PartialEq<CloseRequestResponse> for CloseRequestResponse
impl PartialEq<CloseRequestResponse> for CloseRequestResponse
source§fn eq(&self, other: &CloseRequestResponse) -> bool
fn eq(&self, other: &CloseRequestResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.