pub trait InfoBarExt: 'static {
Show 16 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,
) -> Option<Button>;
fn get_action_area(&self) -> Option<Widget>;
fn get_content_area(&self) -> Option<Widget>;
fn get_message_type(&self) -> MessageType;
fn get_show_close_button(&self) -> bool;
fn response(&self, response_id: ResponseType);
fn set_default_response(&self, response_id: ResponseType);
fn set_message_type(&self, message_type: MessageType);
fn set_response_sensitive(&self, response_id: ResponseType, setting: bool);
fn set_show_close_button(&self, setting: bool);
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;
fn connect_property_message_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_show_close_button_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Required Methods§
fn add_action_widget<P: IsA<Widget>>( &self, child: &P, response_id: ResponseType, )
fn get_action_area(&self) -> Option<Widget>
fn get_content_area(&self) -> Option<Widget>
fn get_message_type(&self) -> MessageType
fn response(&self, response_id: ResponseType)
fn set_default_response(&self, response_id: ResponseType)
fn set_message_type(&self, message_type: MessageType)
fn set_response_sensitive(&self, response_id: ResponseType, setting: bool)
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
fn connect_property_message_type_notify<F: Fn(&Self) + '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.