Top | ![]() |
![]() |
![]() |
![]() |
AsScreenshot * | as_screenshot_new () |
AsScreenshotKind | as_screenshot_kind_from_string () |
const gchar * | as_screenshot_kind_to_string () |
AsScreenshotKind | as_screenshot_get_kind () |
gint | as_screenshot_get_priority () |
const gchar * | as_screenshot_get_caption () |
GPtrArray * | as_screenshot_get_images () |
AsImage * | as_screenshot_get_image () |
AsImage * | as_screenshot_get_source () |
void | as_screenshot_set_kind () |
void | as_screenshot_set_priority () |
void | as_screenshot_set_caption () |
void | as_screenshot_add_image () |
Screenshots have a localized caption and also contain a number of images of different resolution.
See also: AsImage
AsScreenshot *
as_screenshot_new (void
);
Creates a new AsScreenshot.
Since 0.1.0
AsScreenshotKind
as_screenshot_kind_from_string (const gchar *kind
);
Converts the text representation to an enumerated value.
Since 0.1.0
const gchar *
as_screenshot_kind_to_string (AsScreenshotKind kind
);
Converts the enumerated value to an text representation.
Since 0.1.0
AsScreenshotKind
as_screenshot_get_kind (AsScreenshot *screenshot
);
Gets the screenshot kind.
Since 0.1.0
gint
as_screenshot_get_priority (AsScreenshot *screenshot
);
Gets the screenshot priority.
Since 0.3.1
const gchar * as_screenshot_get_caption (AsScreenshot *screenshot
,const gchar *locale
);
Gets the image caption for a specific locale.
Since 0.1.0
GPtrArray *
as_screenshot_get_images (AsScreenshot *screenshot
);
Gets the image sizes included in the screenshot.
Since 0.1.0
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.
Since 0.2.2
AsImage *
as_screenshot_get_source (AsScreenshot *screenshot
);
Gets the source image (the unscaled version) for the screenshot
Since 0.1.6
void as_screenshot_set_kind (AsScreenshot *screenshot
,AsScreenshotKind kind
);
Sets the screenshot kind.
Since 0.1.0
void as_screenshot_set_priority (AsScreenshot *screenshot
,gint priority
);
Sets the screenshot priority. Higher numbers are better.
Since 0.3.1
void as_screenshot_set_caption (AsScreenshot *screenshot
,const gchar *locale
,const gchar *caption
,gsize caption_len
);
Sets a caption on the screenshot for a specific locale.
screenshot |
a AsScreenshot instance. |
|
locale |
the locale, or |
|
caption |
the caption text. |
|
caption_len |
the size of |
Since 0.1.0
void as_screenshot_add_image (AsScreenshot *screenshot
,AsImage *image
);
Adds an image to the screenshot.
Since 0.1.0