Trait gtk4::prelude::MediaFileExt
source · [−]pub trait MediaFileExt: 'static {
fn clear(&self);
fn file(&self) -> Option<File>;
fn input_stream(&self) -> Option<InputStream>;
fn set_file(&self, file: Option<&impl IsA<File>>);
fn set_filename(&self, filename: Option<impl AsRef<Path>>);
fn set_input_stream(&self, stream: Option<&impl IsA<InputStream>>);
fn set_resource(&self, resource_path: Option<&str>);
fn connect_file_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_input_stream_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
source
fn input_stream(&self) -> Option<InputStream>
source
fn set_filename(&self, filename: Option<impl AsRef<Path>>)
source
fn set_input_stream(&self, stream: Option<&impl IsA<InputStream>>)
source
fn set_resource(&self, resource_path: Option<&str>)
source
fn connect_file_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
sourcefn connect_input_stream_notify<F: Fn(&Self) + 'static>(