Trait gtk4::subclass::native_dialog::NativeDialogImpl

source ยท
pub trait NativeDialogImpl: NativeDialogImplExt + ObjectImpl {
    // Provided methods
    fn response(&self, response: ResponseType) { ... }
    fn show(&self) { ... }
    fn hide(&self) { ... }
}
๐Ÿ‘ŽDeprecated: Since 4.10

Provided Methodsยง

source

fn response(&self, response: ResponseType)

๐Ÿ‘ŽDeprecated: Since 4.10

class handler for the GtkNativeDialog::response signal

source

fn show(&self)

๐Ÿ‘ŽDeprecated: Since 4.10

Shows the dialog on the display.

When the user accepts the state of the dialog the dialog will be automatically hidden and the response signal will be emitted.

Multiple calls while the dialog is visible will be ignored.

source

fn hide(&self)

๐Ÿ‘ŽDeprecated: Since 4.10

Hides the dialog if it is visible, aborting any interaction.

Once this is called the response signal will not be emitted until after the next call to NativeDialogExt::show().

If the dialog is not visible this does nothing.

Object Safetyยง

This trait is not object safe.

Implementorsยง