Trait gdk4::prelude::ContentProviderExt
source · [−]pub trait ContentProviderExt: 'static {
fn content_changed(&self);
fn formats(&self) -> ContentFormats;
fn storable_formats(&self) -> ContentFormats;
fn write_mime_type_async<P: FnOnce(Result<(), Error>) + 'static>(
&self,
mime_type: &str,
stream: &impl IsA<OutputStream>,
io_priority: Priority,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn write_mime_type_future(
&self,
mime_type: &str,
stream: &impl IsA<OutputStream> + Clone + 'static,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>;
fn connect_content_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_formats_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_storable_formats_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
source
fn content_changed(&self)
source
fn formats(&self) -> ContentFormats
source
fn storable_formats(&self) -> ContentFormats
sourcefn write_mime_type_async<P: FnOnce(Result<(), Error>) + 'static>(
fn write_mime_type_async<P: FnOnce(Result<(), Error>) + 'static>(
&self,
mime_type: &str,
stream: &impl IsA<OutputStream>,
io_priority: Priority,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn write_mime_type_future(
fn write_mime_type_future(
&self,
mime_type: &str,
stream: &impl IsA<OutputStream> + Clone + 'static,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
sourcefn connect_content_changed<F: Fn(&Self) + 'static>(
fn connect_content_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
source
fn connect_formats_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_storable_formats_notify<F: Fn(&Self) + 'static>(