gio::prelude

Trait EmblemedIconExt

Source
pub trait EmblemedIconExt: IsA<EmblemedIcon> + 'static {
    // Provided methods
    fn add_emblem(&self, emblem: &Emblem) { ... }
    fn clear_emblems(&self) { ... }
    fn emblems(&self) -> Vec<Emblem> { ... }
    fn icon(&self) -> Icon { ... }
    fn gicon(&self) -> Option<Icon> { ... }
}
Expand description

Trait containing all EmblemedIcon methods.

§Implementors

EmblemedIcon

Provided Methods§

Source

fn add_emblem(&self, emblem: &Emblem)

Adds @emblem to the #GList of #GEmblems.

§emblem

a #GEmblem

Source

fn clear_emblems(&self)

Removes all the emblems from @icon.

Source

fn emblems(&self) -> Vec<Emblem>

Gets the list of emblems for the @icon.

§Returns

a #GList of #GEmblems that is owned by @self

Source

fn icon(&self) -> Icon

Gets the main icon for @self.

§Returns

a #GIcon that is owned by @self

Source

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

The Icon to attach emblems to.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§