Trait gtk4::prelude::MediaFileExt

source ·
pub trait MediaFileExt: IsA<MediaFile> + Sealed + 'static {
    // Provided methods
    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 { ... }
}

Provided Methods§

source

fn clear(&self)

source

fn file(&self) -> Option<File>

source

fn input_stream(&self) -> Option<InputStream>

source

fn set_file(&self, file: Option<&impl IsA<File>>)

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

source

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

Object Safety§

This trait is not object safe.

Implementors§