Enum CloseRequestResponse

Enum Documentation

enum class slint::CloseRequestResponse : uint8_t

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].

Values:

enumerator HideWindow

The Window will be hidden (default action)

enumerator KeepWindowShown

The close request is rejected and the window will be kept shown.