Screenshot
Object Hierarchy:
Description:
Namespace: AppStream
Package: appstream
Content:
Creation methods:
- public Screenshot ()
Creates a new Screenshot.
Methods:
- public void add_image (Image image)
Adds an image to the screenshot.
- public void add_video (Video video)
Adds a video to the screenshot.
- public void clear_images ()
Remove all images associated with this screenshot.
- public unowned string get_active_locale ()
Get the current active locale, which is used to get localized messages.
- public unowned string get_caption ()
Gets the image caption
- public unowned Image get_image (uint width, uint height)
Gets the AsImage closest to the target size.
- public unowned GenericArray<Image> get_images ()
Gets the images for this screenshots.
- public unowned GenericArray<Image> get_images_all ()
Returns an array of all images we have, regardless of their size and language.
- public ScreenshotKind get_kind ()
Gets the screenshot kind.
- public ScreenshotMediaKind get_media_kind ()
Gets the screenshot media kind.
- public unowned GenericArray<Video> get_videos ()
Gets the videos for this screenshots.
- public unowned GenericArray<Video> get_videos_all ()
Returns an array of all screencast videos we have, regardless of their size and locale.
- public bool is_valid ()
Performs a quick validation on this screenshot
- public void set_active_locale (string? locale)
Set the current active locale, which is used to get localized messages.
- public void set_caption (string caption, string locale)
Sets a caption on the screenshot
- public void set_kind (ScreenshotKind kind)
Sets the screenshot kind.
Inherited Members:
All known members inherited from class GLib.Object