udapted vi.po
[rhythmbox.git] / widgets / rb-rating-helper.h
blobc91056d7f204c3cf3b4ea2bd7ad36d826d630a4d
1 /*
2 * arch-tag: Header for functions shared by the rating widget and cell renderer.
4 * Copyright (C) 2004 Christophe Fergeau <teuf@gnome.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef RB_RATING_HELPER_H
23 #define RB_RATING_HELPER_H 1
25 #include <gtk/gtk.h>
27 typedef struct _RBRatingPixbufs RBRatingPixbufs;
29 /* Number of stars */
30 #define RB_RATING_MAX_SCORE 5
32 gboolean rb_rating_render_stars (GtkWidget *widget, GdkWindow *window,
33 RBRatingPixbufs *pixbufs,
34 gulong x, gulong y,
35 gulong x_offset, gulong y_offset,
36 gdouble rating, gboolean selected);
38 double rb_rating_get_rating_from_widget (GtkWidget *widget,
39 gint widget_x, gint widget_width,
40 double current_rating);
42 RBRatingPixbufs *rb_rating_pixbufs_new (void);
43 void rb_rating_pixbufs_free (RBRatingPixbufs *pixbufs);
45 void rb_rating_install_rating_property (GObjectClass *klass, gulong prop);
47 #endif