ThemedIcon
Object Hierarchy:
GLib.ThemedIcon
GLib.ThemedIcon
GLib.ThemedIcon
GLib.Object
GLib.Object
GLib.Object->GLib.ThemedIcon
GLib.Icon
GLib.Icon
GLib.Icon->GLib.ThemedIcon
Description:
[
CCode ( type_id =
"g_themed_icon_get_type ()" ) ]
public class ThemedIcon :
Object ,
Icon
ThemedIcon is an implementation of Icon that supports icon
themes.
ThemedIcon contains a list of all of the icons present in an icon theme, so that icons can be looked up
quickly. ThemedIcon does not provide actual pixmaps for icons, just the icon names. Ideally something like
gtk_icon_theme_choose_icon
should be used to resolve the list of names so that fallback icons work nicely with themes that
inherit other themes.
Content:
Properties:
Creation methods:
public ThemedIcon (string iconname)
Creates a new themed icon for iconname
.
public ThemedIcon.from_names (string [] iconnames)
Creates a new themed icon for iconnames
.
public ThemedIcon.with_default_fallbacks (string iconname)
Creates a new themed icon for iconname
, and all the names
that can be created by shortening iconname
at '-' characters.
Methods:
public void append_name (string iconname)
Append a name to the list of icons from within
this .
public unowned string [] get_names ()
Gets the names of icons from within this
.
public void prepend_name (string iconname)
Prepend a name to the list of icons from within
this .
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.Icon