pub trait NativeDialogExt: 'static {
Show 17 methods
// Required methods
fn destroy(&self);
fn get_modal(&self) -> bool;
fn get_title(&self) -> Option<GString>;
fn get_transient_for(&self) -> Option<Window>;
fn get_visible(&self) -> bool;
fn hide(&self);
fn run(&self) -> i32;
fn set_modal(&self, modal: bool);
fn set_title(&self, title: &str);
fn set_transient_for<P: IsA<Window>>(&self, parent: Option<&P>);
fn show(&self);
fn set_property_visible(&self, visible: bool);
fn connect_response<F: Fn(&Self, ResponseType) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_modal_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_title_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_transient_for_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_visible_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Required Methods§
fn destroy(&self)
fn get_modal(&self) -> bool
fn get_title(&self) -> Option<GString>
fn get_transient_for(&self) -> Option<Window>
fn get_visible(&self) -> bool
fn hide(&self)
fn run(&self) -> i32
fn set_modal(&self, modal: bool)
fn set_title(&self, title: &str)
fn set_transient_for<P: IsA<Window>>(&self, parent: Option<&P>)
fn show(&self)
fn set_property_visible(&self, visible: bool)
fn connect_response<F: Fn(&Self, ResponseType) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_modal_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_title_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_transient_for_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_visible_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.