Gtk.IconInfo – gtk+-2.0 Reference Manual
Packages
gtk+-2.0
Gtk
IconInfo
IconInfo.for_pixbuf
copy
get_attach_points
get_base_size
get_builtin_pixbuf
get_display_name
get_embedded_rect
get_filename
load_icon
set_raw_coordinates
IconInfo
Object Hierarchy:
Description:
[
CCode
( copy_function =
"gtk_icon_info_copy"
, type_id =
"gtk_icon_info_get_type ()"
) ]
[
Compact
]
public
class
IconInfo
Contains information found when looking up an icon in an icon theme.
Namespace:
Gtk
Package:
gtk+-2.0
Content:
Creation methods:
public
IconInfo.for_pixbuf
(
IconTheme
icon_theme,
Pixbuf
pixbuf)
Creates a
IconInfo
for a
Pixbuf
.
Methods:
public
IconInfo
copy
()
Make a copy of a
IconInfo
.
public
bool
get_attach_points
(
out
Point
[] points)
This function is deprecated and always returns
false
.
public
int
get_base_size
()
Gets the base size for the icon.
public
unowned
Pixbuf
get_builtin_pixbuf
()
Gets the built-in image for this icon, if any.
public
unowned
string
get_display_name
()
This function is deprecated and always returns
null
.
public
bool
get_embedded_rect
(
out
Rectangle
rectangle)
This function is deprecated and always returns
false
.
public
unowned
string
get_filename
()
Gets the filename for the icon.
public
Pixbuf
load_icon
()
throws
Error
Renders an icon previously looked up in an icon theme using
lookup_icon
; the size will be based on the size passed to
lookup_icon
.
public
void
set_raw_coordinates
(
bool
raw_coordinates)
Sets whether the coordinates returned by
get_embedded_rect
and
get_attach_points
should be returned in their original form as specified in the icon theme, instead of scaled appropriately for the pixbuf returned by
load_icon
.