| LibAppStream Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define AS_TYPE_SCREENSHOT gchar * as_screenshot_get_url_for_size (AsScreenshot *self,const gchar *size_id); gchar * as_screenshot_get_thumbnail_url_for_size (AsScreenshot *self,const gchar *size_id); gchar ** as_screenshot_get_available_sizes (AsScreenshot *self); gchar ** as_screenshot_get_available_thumbnail_sizes (AsScreenshot *self); void as_screenshot_add_url (AsScreenshot *self,const gchar *size_id,const gchar *url); void as_screenshot_add_thumbnail_url (AsScreenshot *self,const gchar *size_id,const gchar *url); gboolean as_screenshot_is_default (AsScreenshot *self); void as_screenshot_set_default (AsScreenshot *self,gboolean b); gboolean as_screenshot_is_valid (AsScreenshot *self); AsScreenshot * as_screenshot_new (void); const gchar * as_screenshot_get_caption (AsScreenshot *self); void as_screenshot_set_caption (AsScreenshot *self,const gchar *value); struct AsScreenshot; struct AsScreenshotClass;
#define AS_TYPE_SCREENSHOT (as_screenshot_get_type ())
The type for AsScreenshot.
gchar * as_screenshot_get_url_for_size (AsScreenshot *self,const gchar *size_id);
Returns a screenshot url for the given size. Returns NULL if no url exists for the given size.
|
the AsScreenshot instance |
|
. a screenshot size, like "800x600", "1400x1600" etc. [in] |
Returns : |
url of the screenshot as string |
gchar * as_screenshot_get_thumbnail_url_for_size (AsScreenshot *self,const gchar *size_id);
Returns a thumbnail url for the given size. Returns NULL if no url exists for the given size.
|
the AsScreenshot instance |
|
. a thumbnail size, like "800x600", "1400x1600" etc. [in] |
Returns : |
url of the thumbnail image as string |
gchar ** as_screenshot_get_available_sizes (AsScreenshot *self);
Returns a list of available screenshot sizes.
|
the AsScreenshot instance |
Returns : |
zero-terminated string array of available sizes. [array length=result_length1] |
gchar ** as_screenshot_get_available_thumbnail_sizes
(AsScreenshot *self);
Returns a list of available thumbnail sizes.
|
the AsScreenshot instance |
Returns : |
zero-terminated string array of available sizes. [array length=result_length1] |
void as_screenshot_add_url (AsScreenshot *self,const gchar *size_id,const gchar *url);
|
the AsScreenshot instance |
|
|
|
void as_screenshot_add_thumbnail_url (AsScreenshot *self,const gchar *size_id,const gchar *url);
|
the AsScreenshot instance |
|
|
|
gboolean as_screenshot_is_default (AsScreenshot *self);
|
the AsScreenshot instance |
Returns : |
TRUE if the screenshot is the default screenshot for this application |
void as_screenshot_set_default (AsScreenshot *self,gboolean b);
|
the AsScreenshot instance |
|
gboolean as_screenshot_is_valid (AsScreenshot *self);
Sanity check to see if we have a valid screenshot object here.
|
the AsScreenshot instance |
const gchar * as_screenshot_get_caption (AsScreenshot *self);
Get and return the current value of the "caption" property.
|
the AsScreenshot instance to query |
Returns : |
the value of the "caption" property |
void as_screenshot_set_caption (AsScreenshot *self,const gchar *value);
Set the value of the "caption" property to value.
|
the AsScreenshot instance to modify |
|
the new value of the "caption" property |
struct AsScreenshot {
GObject parent_instance;
AsScreenshotPrivate * priv;
GHashTable* urls;
GHashTable* thumbnail_urls;
};
Class to store data describing a screenshot
struct AsScreenshotClass {
GObjectClass parent_class;
};
The class structure for AS_TYPE_SCREENSHOT. All the fields in this structure are private and should never be accessed directly.
GObjectClass |
the parent class structure |