Sophie

Sophie

distrib > Mageia > 6 > armv7hl > by-pkgid > 302473efd5d8804d45197576e257a9ed > files > 147

libappstream-devel-0.11.8-1.mga6.armv7hl.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AsImage: AppStream Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="AppStream Library Reference Manual">
<link rel="up" href="ch01.html" title="AppStream API Reference">
<link rel="prev" href="appstream-AsScreenshot.html" title="AsScreenshot">
<link rel="next" href="appstream-AsContentRating.html" title="AsContentRating">
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#appstream-AsImage.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="appstream-AsScreenshot.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="appstream-AsContentRating.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="appstream-AsImage"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="appstream-AsImage.top_of_page"></a>AsImage</span></h2>
<p>AsImage — Object representing a single image used in a screenshot.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="appstream-AsImage.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="returnvalue">AsImageKind</span></a>
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-kind-from-string" title="as_image_kind_from_string ()">as_image_kind_from_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-kind-to-string" title="as_image_kind_to_string ()">as_image_kind_to_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="returnvalue">AsImage</span></a> *
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-new" title="as_image_new ()">as_image_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="returnvalue">AsImageKind</span></a>
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-get-kind" title="as_image_get_kind ()">as_image_get_kind</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-set-kind" title="as_image_set_kind ()">as_image_set_kind</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-get-url" title="as_image_get_url ()">as_image_get_url</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-set-url" title="as_image_set_url ()">as_image_set_url</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-get-width" title="as_image_get_width ()">as_image_get_width</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-set-width" title="as_image_set_width ()">as_image_set_width</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-get-height" title="as_image_get_height ()">as_image_get_height</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-set-height" title="as_image_set_height ()">as_image_set_height</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-get-locale" title="as_image_get_locale ()">as_image_get_locale</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="appstream-AsImage.html#as-image-set-locale" title="as_image_set_locale ()">as_image_set_locale</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="appstream-AsImage.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="appstream-AsImage.html#AS-TYPE-IMAGE:CAPS" title="AS_TYPE_IMAGE">AS_TYPE_IMAGE</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="appstream-AsImage.html#AsImageClass" title="struct AsImageClass">AsImageClass</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind">AsImageKind</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage">AsImage</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="appstream-AsImage.description"></a><h2>Description</h2>
<p>Screenshot may have multiple versions of an image in different resolutions
or aspect ratios. This object allows access to the location and size of a
single image.</p>
<p>See also: <a class="link" href="appstream-AsScreenshot.html#AsScreenshot" title="AsScreenshot"><span class="type">AsScreenshot</span></a></p>
</div>
<div class="refsect1">
<a name="appstream-AsImage.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="as-image-kind-from-string"></a><h3>as_image_kind_from_string ()</h3>
<pre class="programlisting"><a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="returnvalue">AsImageKind</span></a>
as_image_kind_from_string (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *kind</code></em>);</pre>
<p>Converts the text representation to an enumerated value.</p>
<div class="refsect3">
<a name="as-image-kind-from-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>kind</p></td>
<td class="parameter_description"><p>the string.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-image-kind-from-string.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="type">AsImageKind</span></a>, or <a class="link" href="appstream-AsImage.html#AS-IMAGE-KIND-UNKNOWN:CAPS"><code class="literal">AS_IMAGE_KIND_UNKNOWN</code></a> for unknown. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-kind-to-string"></a><h3>as_image_kind_to_string ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
as_image_kind_to_string (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="type">AsImageKind</span></a> kind</code></em>);</pre>
<p>Converts the enumerated value to an text representation.</p>
<div class="refsect3">
<a name="as-image-kind-to-string.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>kind</p></td>
<td class="parameter_description"><p>the <a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="type">AsImageKind</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-image-kind-to-string.returns"></a><h4>Returns</h4>
<p> string version of <em class="parameter"><code>kind</code></em>
</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-new"></a><h3>as_image_new ()</h3>
<pre class="programlisting"><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="returnvalue">AsImage</span></a> *
as_image_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Creates a new <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a>.</p>
<div class="refsect3">
<a name="as-image-new.returns"></a><h4>Returns</h4>
<p> a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-get-kind"></a><h3>as_image_get_kind ()</h3>
<pre class="programlisting"><a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="returnvalue">AsImageKind</span></a>
as_image_get_kind (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>);</pre>
<p>Gets the image kind.</p>
<div class="refsect3">
<a name="as-image-get-kind.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-image-get-kind.returns"></a><h4>Returns</h4>
<p> the <a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="type">AsImageKind</span></a></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-set-kind"></a><h3>as_image_set_kind ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_image_set_kind (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>,
                   <em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="type">AsImageKind</span></a> kind</code></em>);</pre>
<p>Sets the image kind.</p>
<div class="refsect3">
<a name="as-image-set-kind.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>kind</p></td>
<td class="parameter_description"><p>the <a class="link" href="appstream-AsImage.html#AsImageKind" title="enum AsImageKind"><span class="type">AsImageKind</span></a>, e.g. <a class="link" href="appstream-AsImage.html#AS-IMAGE-KIND-THUMBNAIL:CAPS"><code class="literal">AS_IMAGE_KIND_THUMBNAIL</code></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-get-url"></a><h3>as_image_get_url ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
as_image_get_url (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>);</pre>
<p>Gets the full qualified URL for the image, usually pointing at some mirror.</p>
<div class="refsect3">
<a name="as-image-get-url.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-image-get-url.returns"></a><h4>Returns</h4>
<p> URL</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-set-url"></a><h3>as_image_set_url ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_image_set_url (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>,
                  <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *url</code></em>);</pre>
<p>Sets the fully-qualified mirror URL to use for the image.</p>
<div class="refsect3">
<a name="as-image-set-url.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>url</p></td>
<td class="parameter_description"><p>the URL.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-get-width"></a><h3>as_image_get_width ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
as_image_get_width (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>);</pre>
<p>Gets the image width.</p>
<div class="refsect3">
<a name="as-image-get-width.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-image-get-width.returns"></a><h4>Returns</h4>
<p> width in pixels</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-set-width"></a><h3>as_image_set_width ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_image_set_width (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>,
                    <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> width</code></em>);</pre>
<p>Sets the image width.</p>
<div class="refsect3">
<a name="as-image-set-width.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>the width in pixels.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-get-height"></a><h3>as_image_get_height ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
as_image_get_height (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>);</pre>
<p>Gets the image height.</p>
<div class="refsect3">
<a name="as-image-get-height.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-image-get-height.returns"></a><h4>Returns</h4>
<p> height in pixels</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-set-height"></a><h3>as_image_set_height ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_image_set_height (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>,
                     <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> height</code></em>);</pre>
<p>Sets the image height.</p>
<div class="refsect3">
<a name="as-image-set-height.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>the height in pixels.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="as-image-get-locale"></a><h3>as_image_get_locale ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
as_image_get_locale (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>);</pre>
<p>Get locale for this image.</p>
<div class="refsect3">
<a name="as-image-get-locale.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="as-image-get-locale.returns"></a><h4>Returns</h4>
<p> Locale string</p>
</div>
<p class="since">Since: 0.9.5</p>
</div>
<hr>
<div class="refsect2">
<a name="as-image-set-locale"></a><h3>as_image_set_locale ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
as_image_set_locale (<em class="parameter"><code><a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> *image</code></em>,
                     <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *locale</code></em>);</pre>
<p>Sets the locale for this image.</p>
<div class="refsect3">
<a name="as-image-set-locale.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>a <a class="link" href="appstream-AsImage.html#AsImage" title="AsImage"><span class="type">AsImage</span></a> instance.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>locale</p></td>
<td class="parameter_description"><p>the locale string.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 0.9.5</p>
</div>
</div>
<div class="refsect1">
<a name="appstream-AsImage.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="AS-TYPE-IMAGE:CAPS"></a><h3>AS_TYPE_IMAGE</h3>
<pre class="programlisting">#define AS_TYPE_IMAGE (as_image_get_type ())
</pre>
</div>
<hr>
<div class="refsect2">
<a name="AsImageClass"></a><h3>struct AsImageClass</h3>
<pre class="programlisting">struct AsImageClass {
	GObjectClass		parent_class;
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="AsImageKind"></a><h3>enum AsImageKind</h3>
<p>The image type.</p>
<div class="refsect3">
<a name="AsImageKind.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="AS-IMAGE-KIND-UNKNOWN:CAPS"></a>AS_IMAGE_KIND_UNKNOWN</p></td>
<td class="enum_member_description">
<p>Type invalid or not known</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-IMAGE-KIND-SOURCE:CAPS"></a>AS_IMAGE_KIND_SOURCE</p></td>
<td class="enum_member_description">
<p>The source image at full resolution</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="AS-IMAGE-KIND-THUMBNAIL:CAPS"></a>AS_IMAGE_KIND_THUMBNAIL</p></td>
<td class="enum_member_description">
<p>A thumbnail at reduced resolution</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="AsImage"></a><h3>AsImage</h3>
<pre class="programlisting">typedef struct _AsImage AsImage;</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>