Trait libpanel::prelude::SaveDelegateExt

source ·
pub trait SaveDelegateExt: IsA<SaveDelegate> + Sealed + 'static {
Show 24 methods // Provided methods fn close(&self) { ... } fn discard(&self) { ... } fn icon(&self) -> Option<Icon> { ... } fn icon_name(&self) -> Option<GString> { ... } fn is_draft(&self) -> bool { ... } fn progress(&self) -> f64 { ... } fn subtitle(&self) -> Option<GString> { ... } fn title(&self) -> Option<GString> { ... } fn save_async<P: FnOnce(Result<(), Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn save_future( &self, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... } fn set_icon(&self, icon: Option<&impl IsA<Icon>>) { ... } fn set_icon_name(&self, icon: Option<&str>) { ... } fn set_is_draft(&self, is_draft: bool) { ... } fn set_progress(&self, progress: f64) { ... } fn set_subtitle(&self, subtitle: Option<&str>) { ... } fn set_title(&self, title: Option<&str>) { ... } fn connect_close<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_discard<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_icon_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_draft_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_progress_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_subtitle_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_title_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all SaveDelegate methods.

§Implementors

SaveDelegate

Provided Methods§

source

fn close(&self)

source

fn discard(&self)

source

fn icon(&self) -> Option<Icon>

Gets the gio::Icon for the save delegate, or None if unset.

§Returns

a gio::Icon or None

source

fn icon_name(&self) -> Option<GString>

Gets the icon name for the save delegate.

§Returns

the icon name or None

source

fn is_draft(&self) -> bool

source

fn progress(&self) -> f64

source

fn subtitle(&self) -> Option<GString>

Gets the subtitle for the save delegate.

§Returns

the subtitle or None

source

fn title(&self) -> Option<GString>

Gets the title for the save delegate.

§Returns

the title or None

source

fn save_async<P: FnOnce(Result<(), Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

source

fn save_future( &self, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

source

fn set_icon(&self, icon: Option<&impl IsA<Icon>>)

Sets the gio::Icon for the save delegate. Pass None to unset.

§icon

a gio::Icon or None

source

fn set_icon_name(&self, icon: Option<&str>)

Sets the icon name for the save delegate. Pass None to unset.

§icon

the icon name or None

source

fn set_is_draft(&self, is_draft: bool)

source

fn set_progress(&self, progress: f64)

source

fn set_subtitle(&self, subtitle: Option<&str>)

Sets the subtitle for the save delegate. Pass None to unset.

§subtitle

the subtitle or None

source

fn set_title(&self, title: Option<&str>)

Sets the title for the save delegate. Pass None to unset.

§title

the title or None

source

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

This signal is emitted when the save delegate should close the widget it is related to. This can happen after saving as part of a close request and it is now save for the delegate to close.

Implementations are encouraged to connect to this signal (or implement the virtual method) and call PanelWidgetExt::force_close().

source

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

This signal is emitted when the user has requested that the delegate discard the changes instead of saving them.

Implementations are encouraged to connect to this signal (or implement the virtual method) and revert the document to the last saved state and/or close the document.

source

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

source

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

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§