![]() |
![]() |
![]() |
![]() |
#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.
AsContext *
as_screenshot_get_context (AsScreenshot *screenshot
);
Returns the AsContext associated with this screenshot.
This function may return NULL
if no context is set.
Since: 0.11.2
void as_screenshot_set_context (AsScreenshot *screenshot
,AsContext *context
);
Sets the document context this screenshot is associated with.
Since: 0.11.2
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.