Top | ![]() |
![]() |
![]() |
![]() |
AsIcon * | as_icon_new () |
GQuark | as_icon_error_quark () |
const gchar * | as_icon_kind_to_string () |
AsIconKind | as_icon_kind_from_string () |
const gchar * | as_icon_get_name () |
const gchar * | as_icon_get_prefix () |
guint | as_icon_get_width () |
guint | as_icon_get_height () |
AsIconKind | as_icon_get_kind () |
GdkPixbuf * | as_icon_get_pixbuf () |
void | as_icon_set_name () |
void | as_icon_set_prefix () |
void | as_icon_set_width () |
void | as_icon_set_height () |
void | as_icon_set_kind () |
void | as_icon_set_pixbuf () |
gboolean | as_icon_load () |
gboolean | as_icon_convert_to_kind () |
Screenshot may have multiple versions of an icon in different resolutions or aspect ratios. This object allows access to the location and size of a single icon.
See also: AsScreenshot
const gchar *
as_icon_kind_to_string (AsIconKind icon_kind
);
Converts the enumerated value to an text representation.
Since 0.1.0
AsIconKind
as_icon_kind_from_string (const gchar *icon_kind
);
Converts the text representation to an enumerated value.
Since 0.1.0
const gchar *
as_icon_get_name (AsIcon *icon
);
Gets the full qualified URL for the icon, usually pointing at some mirror.
Since 0.3.1
const gchar *
as_icon_get_prefix (AsIcon *icon
);
Gets the suggested prefix the icon, including file extension.
Since 0.1.6
GdkPixbuf *
as_icon_get_pixbuf (AsIcon *icon
);
Gets the icon pixbuf if set.
Since 0.3.1
void as_icon_set_name (AsIcon *icon
,const gchar *name
,gssize name_len
);
Sets the fully-qualified mirror URL to use for the icon.
Since 0.3.1
void as_icon_set_prefix (AsIcon *icon
,const gchar *prefix
);
Sets the icon prefix filename.
Since 0.1.6
void as_icon_set_width (AsIcon *icon
,guint width
);
Sets the icon width.
Since 0.3.1
void as_icon_set_height (AsIcon *icon
,guint height
);
Sets the icon height.
Since 0.3.1
void as_icon_set_kind (AsIcon *icon
,AsIconKind kind
);
Sets the icon kind.
Since 0.3.1
void as_icon_set_pixbuf (AsIcon *icon
,GdkPixbuf *pixbuf
);
Sets the icon pixbuf.
Since 0.3.1
gboolean as_icon_load (AsIcon *icon
,AsIconLoadFlags flags
,GError **error
);
Loads the icon into a local pixbuf.
Since 0.3.1
gboolean as_icon_convert_to_kind (AsIcon *icon
,AsIconKind kind
,GError **error
);
Converts the icon from one kind to another.
Since 0.3.1
The icon type.