Trait libhelium::prelude::ContentBlockImageClusterExt

source ·
pub trait ContentBlockImageClusterExt: IsA<ContentBlockImageCluster> + Sealed + 'static {
    // Provided methods
    fn set_image(
        &self,
        image: &impl IsA<ContentBlockImage>,
        position: ContentBlockImageClusterImagePosition
    ) { ... }
    fn remove_image(&self, image: &impl IsA<ContentBlockImage>) { ... }
    fn title(&self) -> GString { ... }
    fn set_title(&self, value: &str) { ... }
    fn subtitle(&self) -> GString { ... }
    fn set_subtitle(&self, value: &str) { ... }
    fn icon(&self) -> GString { ... }
    fn set_icon(&self, value: &str) { ... }
    fn connect_title_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_subtitle_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
    fn connect_icon_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all ContentBlockImageCluster methods.

§Implementors

ContentBlockImageCluster

Provided Methods§

source

fn set_image( &self, image: &impl IsA<ContentBlockImage>, position: ContentBlockImageClusterImagePosition )

Sets an image to be displayed in the cluster.

§image

The image to display.

§position

The position of the image in the cluster.

source

fn remove_image(&self, image: &impl IsA<ContentBlockImage>)

Removes an image from the cluster.

§image

The image to remove.

source

fn title(&self) -> GString

source

fn set_title(&self, value: &str)

source

fn subtitle(&self) -> GString

source

fn set_subtitle(&self, value: &str)

source

fn icon(&self) -> GString

source

fn set_icon(&self, value: &str)

source

fn connect_title_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_icon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§