Gio.Emblem¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
|||
r/w/co  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class Gio.Emblem(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
GEmblemis an implementation of [iface`Gio`.Icon] that supports having an emblem, which is an icon with additional properties. It can than be added to a [class`Gio`.EmblemedIcon].Currently, only metainformation about the emblem’s origin is supported. More may be added in the future.
- classmethod new(icon)[source]¶
 - Parameters:
 - Returns:
 a new
Gio.Emblem.- Return type:
 
Creates a new emblem for icon.
New in version 2.18.
- classmethod new_with_origin(icon, origin)[source]¶
 - Parameters:
 origin (
Gio.EmblemOrigin) – aGio.EmblemOriginenum defining the emblem’s origin
- Returns:
 a new
Gio.Emblem.- Return type:
 
Creates a new emblem for icon.
New in version 2.18.
- get_icon()[source]¶
 - Returns:
 a
Gio.Icon. The returned object belongs to the emblem and should not be modified or freed.- Return type:
 
Gives back the icon from self.
New in version 2.18.
Property Details¶
- Gio.Emblem.props.icon¶
 - Name:
 icon- Type:
 - Default Value:
 - Flags:
 
The actual icon of the emblem.
New in version 2.18.
- Gio.Emblem.props.origin¶
 - Name:
 origin- Type:
 - Default Value:
 - Flags:
 
The origin the emblem is derived from.
New in version 2.18.