Class
AppStreamScreenshot
Constructors
as_screenshot_new
Creates a new AsScreenshot
.
Instance methods
as_screenshot_add_image
Adds an image to the screenshot.
as_screenshot_add_video
Adds a video to the screenshot.
as_screenshot_clear_images
Remove all images associated with this screenshot.
Available since: 0.15.4
as_screenshot_get_caption
Gets the image caption.
as_screenshot_get_context
Returns the AsContext
associated with this screenshot.
This function may return NULL
if no context is set.
Available since: 0.11.2
as_screenshot_get_environment
Get the GUI environment ID of this screenshot, if any is associated with it. E.g. “plasma-mobile” or “gnome:dark”.
as_screenshot_get_image
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.
Available since: 0.14.0
as_screenshot_get_images
Gets the images for this screenshots. Only images valid for the current language are returned. We return all sizes.
as_screenshot_get_images_all
Returns an array of all images we have, regardless of their size and language.
Available since: 0.10
as_screenshot_get_kind
Gets the screenshot kind.
as_screenshot_get_media_kind
Gets the screenshot media kind.
as_screenshot_get_videos
Gets the videos for this screenshots. Only videos valid for the current language selection are returned. We return all sizes.
as_screenshot_get_videos_all
Returns an array of all screencast videos we have, regardless of their size and locale.
as_screenshot_is_valid
Performs a quick validation on this screenshot.
as_screenshot_set_caption
Sets a caption on the screenshot.
as_screenshot_set_context
Sets the document context this screenshot is associated with.
Available since: 0.11.2
as_screenshot_set_environment
Sets the GUI environment ID of this screenshot.
as_screenshot_set_kind
Sets the screenshot kind.
Signals
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct AppStreamScreenshotClass {
GObjectClass parent_class;
void (* _as_reserved1) (
void
);
void (* _as_reserved2) (
void
);
void (* _as_reserved3) (
void
);
void (* _as_reserved4) (
void
);
void (* _as_reserved5) (
void
);
void (* _as_reserved6) (
void
);
}
Class members
parent_class |
|
No description available. | |
_as_reserved1 |
|
No description available. | |
_as_reserved2 |
|
No description available. | |
_as_reserved3 |
|
No description available. | |
_as_reserved4 |
|
No description available. | |
_as_reserved5 |
|
No description available. | |
_as_reserved6 |
|
No description available. |