[]Struct gio::Emblem

pub struct Emblem(_, _);

Emblem is an implementation of Icon that supports having an emblem, which is an icon with additional properties. It can than be added to a EmblemedIcon.

Currently, only metainformation about the emblem's origin is supported. More may be added in the future.

Implements

glib::object::ObjectExt, IconExt

Methods

impl Emblem[src]

pub fn new<P: IsA<Icon>>(icon: &P) -> Emblem[src]

Creates a new emblem for icon.

icon

a GIcon containing the icon.

Returns

a new Emblem.

pub fn new_with_origin<P: IsA<Icon>>(icon: &P, origin: EmblemOrigin) -> Emblem[src]

Creates a new emblem for icon.

icon

a GIcon containing the icon.

origin

a GEmblemOrigin enum defining the emblem's origin

Returns

a new Emblem.

pub fn get_icon(&self) -> Option<Icon>[src]

Gives back the icon from self.

Returns

a Icon. The returned object belongs to the emblem and should not be modified or freed.

pub fn get_origin(&self) -> EmblemOrigin[src]

Gets the origin of the emblem.

Returns

the origin of the emblem

Trait Implementations

impl Clone for Emblem

impl Debug for Emblem

impl Display for Emblem[src]

impl Eq for Emblem

impl Hash for Emblem

impl IsA<Icon> for Emblem

impl Ord for Emblem

impl<T: ObjectType> PartialEq<T> for Emblem

impl<T: ObjectType> PartialOrd<T> for Emblem

impl StaticType for Emblem

Auto Trait Implementations

impl RefUnwindSafe for Emblem

impl !Send for Emblem

impl !Sync for Emblem

impl Unpin for Emblem

impl UnwindSafe for Emblem

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.