Top |
const gchar * | snapd_media_get_media_type () |
const gchar * | snapd_media_get_url () |
guint | snapd_media_get_width () |
guint | snapd_media_get_height () |
A SnapdMedia represents media (icons, screenshots etc) that are associated with a snap.
Snap media can be queried using snapd_snap_get_media()
.
const gchar *
snapd_media_get_media_type (SnapdMedia *media
);
Get the type for this media, e.g. "icon" or "screenshot".
Since: 1.45
const gchar *
snapd_media_get_url (SnapdMedia *media
);
Get the URL for this media, e.g. "http://example.com/media.png"
Since: 1.45
guint
snapd_media_get_width (SnapdMedia *media
);
Get the width of the media in pixels or 0 if unknown.
Return: a width
Since: 1.45
guint
snapd_media_get_height (SnapdMedia *media
);
Get the height of the media in pixels or 0 if unknown.
Return: a height
Since: 1.45
typedef struct _SnapdMedia SnapdMedia;
SnapdMedia contains media information.
Since: 1.45
“height”
property“height” guint
Height of media in pixels.
Flags: Read / Write / Construct Only
Default value: 0
“type”
property“type” gchar *
Type for this media.
Flags: Read / Write / Construct Only
Default value: NULL
“url”
property“url” gchar *
URL for this media.
Flags: Read / Write / Construct Only
Default value: NULL
“width”
property“width” guint
Width of media in pixels.
Flags: Read / Write / Construct Only
Default value: 0