1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>RBRating</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="Rhythmbox Development Reference Manual">
8
<link rel="up" href="ch07.html" title="Widgets">
9
<link rel="prev" href="rhythmbox-rb-rating-helper.html" title="rb-rating-helper">
10
<link rel="next" href="RBSearchEntry.html" title="RBSearchEntry">
11
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="rhythmbox-rb-rating-helper.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="ch07.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
<th width="100%" align="center">Rhythmbox Development Reference Manual</th>
21
<td><a accesskey="n" href="RBSearchEntry.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#RBRating.synopsis" class="shortcut">Top</a>
26
<a href="#RBRating.description" class="shortcut">Description</a>
28
<a href="#RBRating.object-hierarchy" class="shortcut">Object Hierarchy</a>
30
<a href="#RBRating.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
32
<a href="#RBRating.properties" class="shortcut">Properties</a>
34
<a href="#RBRating.signals" class="shortcut">Signals</a>
37
<div class="refentry">
38
<a name="RBRating"></a><div class="titlepage"></div>
39
<div class="refnamediv"><table width="100%"><tr>
41
<h2><span class="refentrytitle"><a name="RBRating.top_of_page"></a>RBRating</span></h2>
42
<p>RBRating — widget for displaying song ratings</p>
44
<td valign="top" align="right"></td>
46
<div class="refsynopsisdiv">
47
<a name="RBRating.synopsis"></a><h2>Synopsis</h2>
48
<pre class="synopsis">struct <a class="link" href="RBRating.html#RBRating-struct" title="struct RBRating">RBRating</a>;
49
struct <a class="link" href="RBRating.html#RBRatingClass" title="struct RBRatingClass">RBRatingClass</a>;
50
<a class="link" href="RBRating.html" title="RBRating"><span class="returnvalue">RBRating</span></a> * <a class="link" href="RBRating.html#rb-rating-new" title="rb_rating_new ()">rb_rating_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
53
<div class="refsect1">
54
<a name="RBRating.object-hierarchy"></a><h2>Object Hierarchy</h2>
55
<pre class="synopsis">
56
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
57
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
58
+----<a href="http://library.gnome.org/devel/gtk/GtkWidget.html">GtkWidget</a>
62
<div class="refsect1">
63
<a name="RBRating.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
66
AtkImplementorIface and <a href="http://library.gnome.org/devel/gtk/GtkBuildable.html">GtkBuildable</a>.</p>
68
<div class="refsect1">
69
<a name="RBRating.properties"></a><h2>Properties</h2>
70
<pre class="synopsis">
71
"<a class="link" href="RBRating.html#RBRating--rating" title='The "rating" property'>rating</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write
74
<div class="refsect1">
75
<a name="RBRating.signals"></a><h2>Signals</h2>
76
<pre class="synopsis">
77
"<a class="link" href="RBRating.html#RBRating-adjust-rating" title='The "adjust-rating" signal'>adjust-rating</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
78
"<a class="link" href="RBRating.html#RBRating-rated" title='The "rated" signal'>rated</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
79
"<a class="link" href="RBRating.html#RBRating-set-rating" title='The "set-rating" signal'>set-rating</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
82
<div class="refsect1">
83
<a name="RBRating.description"></a><h2>Description</h2>
85
This widget displays a rating (0-5 stars) and allows the user to
86
alter the rating by clicking.
89
<div class="refsect1">
90
<a name="RBRating.details"></a><h2>Details</h2>
91
<div class="refsect2">
92
<a name="RBRating-struct"></a><h3>struct RBRating</h3>
93
<pre class="programlisting">struct RBRating;</pre>
98
<div class="refsect2">
99
<a name="RBRatingClass"></a><h3>struct RBRatingClass</h3>
100
<pre class="programlisting">struct RBRatingClass {
101
GtkWidgetClass parent;
103
void (*rated) (RBRating *rating, double score);
104
gboolean (*set_rating) (RBRating *rating, double score);
105
gboolean (*adjust_rating) (RBRating *rating, double adjust);
112
<div class="refsect2">
113
<a name="rb-rating-new"></a><h3>rb_rating_new ()</h3>
114
<pre class="programlisting"><a class="link" href="RBRating.html" title="RBRating"><span class="returnvalue">RBRating</span></a> * rb_rating_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
116
Creates a new rating widget
118
<div class="variablelist"><table border="0">
119
<col align="left" valign="top">
121
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
122
<td>a new <a class="link" href="RBRating.html" title="RBRating"><span class="type">RBRating</span></a> widget.</td>
127
<div class="refsect1">
128
<a name="RBRating.property-details"></a><h2>Property Details</h2>
129
<div class="refsect2">
130
<a name="RBRating--rating"></a><h3>The <code class="literal">"rating"</code> property</h3>
131
<pre class="programlisting"> "rating" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write</pre>
133
The rating displayed in the widget, as a floating point value
136
<p>Allowed values: [0,5]</p>
137
<p>Default value: 2.5</p>
140
<div class="refsect1">
141
<a name="RBRating.signal-details"></a><h2>Signal Details</h2>
142
<div class="refsect2">
143
<a name="RBRating-adjust-rating"></a><h3>The <code class="literal">"adjust-rating"</code> signal</h3>
144
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RBRating.html" title="RBRating"><span class="type">RBRating</span></a> *rating,
145
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> adjust,
146
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
148
Action signal used to make a relative adjustment to the
151
<div class="variablelist"><table border="0">
152
<col align="left" valign="top">
155
<td><p><span class="term"><em class="parameter"><code>rating</code></em> :</span></p></td>
156
<td>the <a class="link" href="RBRating.html" title="RBRating"><span class="type">RBRating</span></a>
160
<td><p><span class="term"><em class="parameter"><code>adjust</code></em> :</span></p></td>
161
<td>value to add to the rating</td>
164
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
165
<td>user data set when the signal handler was connected.</td>
171
<div class="refsect2">
172
<a name="RBRating-rated"></a><h3>The <code class="literal">"rated"</code> signal</h3>
173
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RBRating.html" title="RBRating"><span class="type">RBRating</span></a> *rating,
174
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> score,
175
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
177
Emitted when the user changes the rating.
179
<div class="variablelist"><table border="0">
180
<col align="left" valign="top">
183
<td><p><span class="term"><em class="parameter"><code>rating</code></em> :</span></p></td>
184
<td>the <a class="link" href="RBRating.html" title="RBRating"><span class="type">RBRating</span></a>
188
<td><p><span class="term"><em class="parameter"><code>score</code></em> :</span></p></td>
189
<td>the new rating</td>
192
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
193
<td>user data set when the signal handler was connected.</td>
199
<div class="refsect2">
200
<a name="RBRating-set-rating"></a><h3>The <code class="literal">"set-rating"</code> signal</h3>
201
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="RBRating.html" title="RBRating"><span class="type">RBRating</span></a> *rating,
202
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> score,
203
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
205
Action signal used to change the rating.
207
<div class="variablelist"><table border="0">
208
<col align="left" valign="top">
211
<td><p><span class="term"><em class="parameter"><code>rating</code></em> :</span></p></td>
212
<td>the <a class="link" href="RBRating.html" title="RBRating"><span class="type">RBRating</span></a>
216
<td><p><span class="term"><em class="parameter"><code>score</code></em> :</span></p></td>
217
<td>the new rating</td>
220
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
221
<td>user data set when the signal handler was connected.</td>
230
Generated by GTK-Doc V1.17</div>
b'\\ No newline at end of file'