Top |
Functions
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_url () |
const gchar * | as_icon_get_filename () |
const gchar * | as_icon_get_prefix () |
guint | as_icon_get_width () |
guint | as_icon_get_height () |
guint | as_icon_get_scale () |
AsIconKind | as_icon_get_kind () |
GdkPixbuf * | as_icon_get_pixbuf () |
void | as_icon_set_name () |
void | as_icon_set_url () |
void | as_icon_set_filename () |
void | as_icon_set_prefix () |
void | as_icon_set_width () |
void | as_icon_set_height () |
void | as_icon_set_scale () |
void | as_icon_set_kind () |
void | as_icon_set_pixbuf () |
gboolean | as_icon_load () |
gboolean | as_icon_convert_to_kind () |
Types and Values
#define | AS_TYPE_ICON |
struct | AsIconClass |
enum | AsIconError |
enum | AsIconKind |
enum | AsIconLoadFlags |
#define | AS_ICON_ERROR |
AsIcon |
Description
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
Functions
as_icon_kind_to_string ()
const gchar *
as_icon_kind_to_string (AsIconKind icon_kind
);
Converts the enumerated value to an text representation.
Since: 0.1.0
as_icon_kind_from_string ()
AsIconKind
as_icon_kind_from_string (const gchar *icon_kind
);
Converts the text representation to an enumerated value.
Since: 0.1.0
as_icon_get_name ()
const gchar *
as_icon_get_name (AsIcon *icon
);
Gets the name of the icon, e.g. "epiphany.png"
Since: 0.3.1
as_icon_get_url ()
const gchar *
as_icon_get_url (AsIcon *icon
);
Gets the full qualified URL for the icon, usually pointing at some mirror.
NOTE: This is only set for icons of type AS_ICON_KIND_REMOTE
Since: 0.3.2
as_icon_get_filename ()
const gchar *
as_icon_get_filename (AsIcon *icon
);
Gets the absolute path on disk of the icon.
NOTE: This is only set for icons of type AS_ICON_KIND_LOCAL
Since: 0.3.2
as_icon_get_prefix ()
const gchar *
as_icon_get_prefix (AsIcon *icon
);
Gets the suggested prefix of the icon.
Since: 0.1.6
as_icon_get_pixbuf ()
GdkPixbuf *
as_icon_get_pixbuf (AsIcon *icon
);
Gets the icon pixbuf if set.
Since: 0.3.1
as_icon_set_name ()
void as_icon_set_name (AsIcon *icon
,const gchar *name
);
Sets the basename to use for the icon.
Since: 0.3.1
as_icon_set_url ()
void as_icon_set_url (AsIcon *icon
,const gchar *url
);
Sets the icon URL.
Since: 0.3.2
as_icon_set_filename ()
void as_icon_set_filename (AsIcon *icon
,const gchar *filename
);
Sets the icon absolute filename.
Since: 0.3.2
as_icon_set_prefix ()
void as_icon_set_prefix (AsIcon *icon
,const gchar *prefix
);
Sets the icon prefix filename.
Since: 0.1.6
as_icon_set_width ()
void as_icon_set_width (AsIcon *icon
,guint width
);
Sets the icon width.
Since: 0.3.1
as_icon_set_height ()
void as_icon_set_height (AsIcon *icon
,guint height
);
Sets the icon height.
Since: 0.3.1
as_icon_set_scale ()
void as_icon_set_scale (AsIcon *icon
,guint scale
);
Sets the icon scale.
Since: 0.6.13
as_icon_set_kind ()
void as_icon_set_kind (AsIcon *icon
,AsIconKind kind
);
Sets the icon kind.
Since: 0.3.1
as_icon_set_pixbuf ()
void as_icon_set_pixbuf (AsIcon *icon
,GdkPixbuf *pixbuf
);
Sets the icon pixbuf.
Since: 0.3.1
as_icon_load ()
gboolean as_icon_load (AsIcon *icon
,AsIconLoadFlags flags
,GError **error
);
Loads the icon into a local pixbuf.
Since: 0.3.1
as_icon_convert_to_kind ()
gboolean as_icon_convert_to_kind (AsIcon *icon
,AsIconKind kind
,GError **error
);
Converts the icon from one kind to another.
Parameters
icon |
a AsIcon instance. |
|
kind |
a |
|
error |
A GError or |
Since: 0.3.1
Types and Values
enum AsIconKind
The icon type.