3
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4
<title>rb-rating-helper</title>
5
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
6
<link rel="start" href="index.html" title="Rhythmbox Development Reference Manual">
7
<link rel="up" href="ch08.html" title="Widgets">
8
<link rel="prev" href="rhythmbox-rb-query-creator.html" title="rb-query-creator">
9
<link rel="next" href="rhythmbox-rb-rating.html" title="rb-rating">
10
<meta name="generator" content="GTK-Doc V1.4 (XML mode)">
11
<link rel="stylesheet" href="style.css" type="text/css">
12
<link rel="chapter" href="ch01.html" title="IRadio UI">
13
<link rel="chapter" href="ch02.html" title="Lib">
14
<link rel="chapter" href="ch03.html" title="Metadata">
15
<link rel="chapter" href="ch04.html" title="Player">
16
<link rel="chapter" href="ch05.html" title="RhythmDB">
17
<link rel="chapter" href="ch06.html" title="Shell">
18
<link rel="chapter" href="ch07.html" title="Sources">
19
<link rel="chapter" href="ch08.html" title="Widgets">
21
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
22
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
23
<td><a accesskey="p" href="rhythmbox-rb-query-creator.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
24
<td><a accesskey="u" href="ch08.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
25
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
26
<th width="100%" align="center">Rhythmbox Development Reference Manual</th>
27
<td><a accesskey="n" href="rhythmbox-rb-rating.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
29
<div class="refentry" lang="en">
30
<a name="rhythmbox-rb-rating-helper"></a><div class="titlepage"></div>
31
<div class="refnamediv"><table width="100%"><tr>
33
<h2><span class="refentrytitle">rb-rating-helper</span></h2>
34
<p>rb-rating-helper — </p>
36
<td valign="top" align="right"></td>
38
<div class="refsynopsisdiv">
40
<pre class="synopsis">
44
<a href="rhythmbox-rb-rating-helper.html#RBRatingPixbufs">RBRatingPixbufs</a>;
45
#define <a href="rhythmbox-rb-rating-helper.html#RB-RATING-MAX-SCORE:CAPS">RB_RATING_MAX_SCORE</a>
46
gboolean <a href="rhythmbox-rb-rating-helper.html#rb-rating-render-stars">rb_rating_render_stars</a> (GtkWidget *widget,
48
<a href="rhythmbox-rb-rating-helper.html#RBRatingPixbufs">RBRatingPixbufs</a> *pixbufs,
55
double <a href="rhythmbox-rb-rating-helper.html#rb-rating-get-rating-from-widget">rb_rating_get_rating_from_widget</a>
59
double current_rating);
60
<a href="rhythmbox-rb-rating-helper.html#RBRatingPixbufs">RBRatingPixbufs</a>* <a href="rhythmbox-rb-rating-helper.html#rb-rating-pixbufs-new">rb_rating_pixbufs_new</a> (void);
61
void <a href="rhythmbox-rb-rating-helper.html#rb-rating-pixbufs-free">rb_rating_pixbufs_free</a> (<a href="rhythmbox-rb-rating-helper.html#RBRatingPixbufs">RBRatingPixbufs</a> *pixbufs);
62
void <a href="rhythmbox-rb-rating-helper.html#rb-rating-install-rating-property">rb_rating_install_rating_property</a>
67
<div class="refsect1" lang="en">
68
<a name="id2592356"></a><h2>Description</h2>
73
<div class="refsect1" lang="en">
74
<a name="id2592367"></a><h2>Details</h2>
75
<div class="refsect2" lang="en">
76
<a name="id2592373"></a><h3>
77
<a name="RBRatingPixbufs"></a>RBRatingPixbufs</h3>
78
<a class="indexterm" name="id2592383"></a><pre class="programlisting">typedef struct _RBRatingPixbufs RBRatingPixbufs;</pre>
84
<div class="refsect2" lang="en">
85
<a name="id2602244"></a><h3>
86
<a name="RB-RATING-MAX-SCORE:CAPS"></a>RB_RATING_MAX_SCORE</h3>
87
<a class="indexterm" name="id2602254"></a><pre class="programlisting">#define RB_RATING_MAX_SCORE 5
94
<div class="refsect2" lang="en">
95
<a name="id2602269"></a><h3>
96
<a name="rb-rating-render-stars"></a>rb_rating_render_stars ()</h3>
97
<a class="indexterm" name="id2602278"></a><pre class="programlisting">gboolean rb_rating_render_stars (GtkWidget *widget,
99
<a href="rhythmbox-rb-rating-helper.html#RBRatingPixbufs">RBRatingPixbufs</a> *pixbufs,
105
gboolean selected);</pre>
109
<div class="variablelist"><table border="0">
110
<col align="left" valign="top">
114
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
120
<span class="term"><em class="parameter"><code>window</code></em> :</span></td>
126
<span class="term"><em class="parameter"><code>pixbufs</code></em> :</span></td>
132
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
138
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
144
<span class="term"><em class="parameter"><code>x_offset</code></em> :</span></td>
150
<span class="term"><em class="parameter"><code>y_offset</code></em> :</span></td>
156
<span class="term"><em class="parameter"><code>rating</code></em> :</span></td>
162
<span class="term"><em class="parameter"><code>selected</code></em> :</span></td>
168
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
178
<div class="refsect2" lang="en">
179
<a name="id2602502"></a><h3>
180
<a name="rb-rating-get-rating-from-widget"></a>rb_rating_get_rating_from_widget ()</h3>
181
<a class="indexterm" name="id2602511"></a><pre class="programlisting">double rb_rating_get_rating_from_widget
185
double current_rating);</pre>
189
<div class="variablelist"><table border="0">
190
<col align="left" valign="top">
194
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
200
<span class="term"><em class="parameter"><code>widget_x</code></em> :</span></td>
206
<span class="term"><em class="parameter"><code>widget_width</code></em> :</span></td>
212
<span class="term"><em class="parameter"><code>current_rating</code></em> :</span></td>
218
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
228
<div class="refsect2" lang="en">
229
<a name="id2602632"></a><h3>
230
<a name="rb-rating-pixbufs-new"></a>rb_rating_pixbufs_new ()</h3>
231
<a class="indexterm" name="id2602641"></a><pre class="programlisting"><a href="rhythmbox-rb-rating-helper.html#RBRatingPixbufs">RBRatingPixbufs</a>* rb_rating_pixbufs_new (void);</pre>
235
<div class="variablelist"><table border="0">
236
<col align="left" valign="top">
239
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
248
<div class="refsect2" lang="en">
249
<a name="id2600054"></a><h3>
250
<a name="rb-rating-pixbufs-free"></a>rb_rating_pixbufs_free ()</h3>
251
<a class="indexterm" name="id2600063"></a><pre class="programlisting">void rb_rating_pixbufs_free (<a href="rhythmbox-rb-rating-helper.html#RBRatingPixbufs">RBRatingPixbufs</a> *pixbufs);</pre>
255
<div class="variablelist"><table border="0">
256
<col align="left" valign="top">
259
<span class="term"><em class="parameter"><code>pixbufs</code></em> :</span></td>
268
<div class="refsect2" lang="en">
269
<a name="id2600108"></a><h3>
270
<a name="rb-rating-install-rating-property"></a>rb_rating_install_rating_property ()</h3>
271
<a class="indexterm" name="id2600117"></a><pre class="programlisting">void rb_rating_install_rating_property
272
(GObjectClass *klass,
277
<div class="variablelist"><table border="0">
278
<col align="left" valign="top">
282
<span class="term"><em class="parameter"><code>klass</code></em> :</span></td>
288
<span class="term"><em class="parameter"><code>prop</code></em> :</span></td>
299
<table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle">
300
<td align="left"><a accesskey="p" href="rhythmbox-rb-query-creator.html"><b><< rb-query-creator</b></a></td>
301
<td align="right"><a accesskey="n" href="rhythmbox-rb-rating.html"><b>rb-rating >></b></a></td>