Trait DialogExt

Source
pub trait DialogExt: 'static {
Show 14 methods // Required methods fn add_action_widget<P: IsA<Widget>>( &self, child: &P, response_id: ResponseType, ); fn add_button(&self, button_text: &str, response_id: ResponseType) -> Widget; fn get_content_area(&self) -> Box; fn get_header_bar(&self) -> Option<Widget>; fn get_response_for_widget<P: IsA<Widget>>( &self, widget: &P, ) -> ResponseType; fn get_widget_for_response( &self, response_id: ResponseType, ) -> Option<Widget>; fn response(&self, response_id: ResponseType); fn run(&self) -> ResponseType; fn set_default_response(&self, response_id: ResponseType); fn set_response_sensitive(&self, response_id: ResponseType, setting: bool); fn get_property_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;
}

Required Methods§

Source

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

Source

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

Source

fn get_content_area(&self) -> Box

Source

fn get_header_bar(&self) -> Option<Widget>

Source

fn get_response_for_widget<P: IsA<Widget>>(&self, widget: &P) -> ResponseType

Source

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

Source

fn response(&self, response_id: ResponseType)

Source

fn run(&self) -> ResponseType

Source

fn set_default_response(&self, response_id: ResponseType)

Source

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

Source

fn get_property_use_header_bar(&self) -> i32

Source

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

Source

fn emit_close(&self)

Source

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

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§

Source§

impl<O: IsA<Dialog>> DialogExt for O