Top |
AsScreenshotKind | as_screenshot_kind_from_string () |
const gchar * | as_screenshot_kind_to_string () |
gboolean | as_screenshot_is_valid () |
AsScreenshot * | as_screenshot_new () |
AsScreenshotKind | as_screenshot_get_kind () |
void | as_screenshot_set_kind () |
AsScreenshotMediaKind | as_screenshot_get_media_kind () |
const gchar * | as_screenshot_get_caption () |
void | as_screenshot_set_caption () |
GPtrArray * | as_screenshot_get_images_all () |
GPtrArray * | as_screenshot_get_images () |
AsImage * | as_screenshot_get_image () |
void | as_screenshot_add_image () |
void | as_screenshot_clear_images () |
GPtrArray * | as_screenshot_get_videos_all () |
GPtrArray * | as_screenshot_get_videos () |
void | as_screenshot_add_video () |
const gchar * | as_screenshot_get_active_locale () |
void | as_screenshot_set_active_locale () |
#define | AS_TYPE_SCREENSHOT |
struct | AsScreenshotClass |
enum | AsScreenshotKind |
enum | AsScreenshotMediaKind |
AsScreenshot |
Screenshots have a localized caption and contain either a set of images of different resolution or a video screencast showcasing the software.
AsScreenshotKind
as_screenshot_kind_from_string (const gchar *kind
);
Converts the text representation to an enumerated value.
const gchar *
as_screenshot_kind_to_string (AsScreenshotKind kind
);
Converts the enumerated value to an text representation.
gboolean
as_screenshot_is_valid (AsScreenshot *screenshot
);
Performs a quick validation on this screenshot
AsScreenshotKind
as_screenshot_get_kind (AsScreenshot *screenshot
);
Gets the screenshot kind.
void as_screenshot_set_kind (AsScreenshot *screenshot
,AsScreenshotKind kind
);
Sets the screenshot kind.
AsScreenshotMediaKind
as_screenshot_get_media_kind (AsScreenshot *screenshot
);
Gets the screenshot media kind.
const gchar *
as_screenshot_get_caption (AsScreenshot *screenshot
);
Gets the image caption
void as_screenshot_set_caption (AsScreenshot *screenshot
,const gchar *caption
,const gchar *locale
);
Sets a caption on the screenshot
GPtrArray *
as_screenshot_get_images_all (AsScreenshot *screenshot
);
Returns an array of all images we have, regardless of their size and language.
Since: 0.10
GPtrArray *
as_screenshot_get_images (AsScreenshot *screenshot
);
Gets the images for this screenshots. Only images valid for the current language are returned. We return all sizes.
AsImage * as_screenshot_get_image (AsScreenshot *screenshot
,guint width
,guint height
);
Gets the AsImage closest to the target size. The AsImage may not actually be the requested size, and the application may have to pad / rescale the image to make it fit. Only images for the current active locale (or fallback, if images are not localized) are considered.
Since: 0.14.0
void as_screenshot_add_image (AsScreenshot *screenshot
,AsImage *image
);
Adds an image to the screenshot.
void
as_screenshot_clear_images (AsScreenshot *screenshot
);
Remove all images associated with this screenshot.
Since: 0.15.4
GPtrArray *
as_screenshot_get_videos_all (AsScreenshot *screenshot
);
Returns an array of all screencast videos we have, regardless of their size and locale.
GPtrArray *
as_screenshot_get_videos (AsScreenshot *screenshot
);
Gets the videos for this screenshots. Only videos valid for the current language selection are returned. We return all sizes.
void as_screenshot_add_video (AsScreenshot *screenshot
,AsVideo *video
);
Adds a video to the screenshot.
const gchar *
as_screenshot_get_active_locale (AsScreenshot *screenshot
);
Get the current active locale, which is used to get localized messages.
void as_screenshot_set_active_locale (AsScreenshot *screenshot
,const gchar *locale
);
Set the current active locale, which is used to get localized messages. If the AsComponent linking this AsScreenshot was fetched from a localized database, usually only one locale is available.