Trait DialogExt

Source
pub trait DialogExt:
    IsA<Dialog>
    + Sealed
    + 'static {
    // Provided methods
    fn add_action_widget(
        &self,
        child: &impl IsA<Widget>,
        response_id: ResponseType,
    ) { ... }
    fn add_button(&self, button_text: &str, response_id: ResponseType) -> Widget { ... }
    fn content_area(&self) -> Box { ... }
    fn header_bar(&self) -> HeaderBar { ... }
    fn widget_for_response(&self, response_id: ResponseType) -> Option<Widget> { ... }
    fn response(&self, response_id: ResponseType) { ... }
    fn set_default_response(&self, response_id: ResponseType) { ... }
    fn set_response_sensitive(&self, response_id: ResponseType, setting: bool) { ... }
    fn use_header_bar(&self) -> i32 { ... }
    fn connect_close<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    fn emit_close(&self) { ... }
    fn connect_response<F: Fn(&Self, ResponseType) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
๐Ÿ‘ŽDeprecated: Since 4.10

Provided Methodsยง

Source

fn add_action_widget(&self, child: &impl IsA<Widget>, response_id: ResponseType)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn add_button(&self, button_text: &str, response_id: ResponseType) -> Widget

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn content_area(&self) -> Box

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn header_bar(&self) -> HeaderBar

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn widget_for_response(&self, response_id: ResponseType) -> Option<Widget>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn response(&self, response_id: ResponseType)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_default_response(&self, response_id: ResponseType)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_response_sensitive(&self, response_id: ResponseType, setting: bool)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn use_header_bar(&self) -> i32

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_close<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn emit_close(&self)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_response<F: Fn(&Self, ResponseType) + 'static>( &self, f: F, ) -> SignalHandlerId

๐Ÿ‘ŽDeprecated: Since 4.10

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementorsยง