Gtk.IconSet – gtk+-2.0 Reference Manual
Packages
gtk+-2.0
Gtk
IconSet
IconSet
IconSet.from_pixbuf
add_source
copy
get_sizes
render_icon
IconSet
Object Hierarchy:
Description:
[
CCode
( ref_function =
"gtk_icon_set_ref"
, type_id =
"gtk_icon_set_get_type ()"
, unref_function =
"gtk_icon_set_unref"
) ]
[
Compact
]
public
class
IconSet
Namespace:
Gtk
Package:
gtk+-2.0
Content:
Creation methods:
public
IconSet
()
Creates a new
IconSet
.
public
IconSet.from_pixbuf
(
Pixbuf
pixbuf)
Creates a new
IconSet
with
pixbuf
as the default/fallback source image.
Methods:
public
void
add_source
(
IconSource
source)
Icon sets have a list of
IconSource
, which they use as base icons for rendering icons in different states and sizes.
public
IconSet
copy
()
Copies
this
by value.
public
void
get_sizes
(
out
IconSize
[] sizes)
Obtains a list of icon sizes this icon set can render.
public
Pixbuf
render_icon
(
Style
style,
TextDirection
direction,
StateType
state,
IconSize
size,
Widget
widget,
string
detail)
Renders an icon using
render_icon
.