![]() |
![]() |
![]() |
libstarred Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
StarredCellRendererRatingStarredCellRendererRating — A cell renderer for the typical five-star rating. |
#include <libstarrred/libstarrred.h>
struct StarredCellRendererRating;
struct StarredCellRendererRatingClass;
GtkCellRenderer * starred_cell_renderer_rating_new (void
);
"black-char" guint : Read / Write "black-icon-name" gchar* : Read / Write "editable" gboolean : Read / Write "icon-size" GtkIconSize : Read / Write "max-rating" gint : Read / Write "min-rating" gint : Read / Write "rating" gint : Read / Write "white-char" guint : Read / Write "white-icon-name" gchar* : Read / Write
struct StarredCellRendererRating;
Opaque data structure representing StarredCellRendererRating instances.
struct StarredCellRendererRatingClass { GtkCellRendererClass parent_class; void (*edited) (StarredCellRendererRating *cell_renderer_stars, const gchar *path, gint new_rating); /* Padding for future expansion */ void (*_starred_reserved1) (void); void (*_starred_reserved2) (void); void (*_starred_reserved3) (void); void (*_starred_reserved4) (void); void (*_starred_reserved5) (void); };
Virtual methods of the StarredCellRendererRating class.
GtkCellRendererClass |
Virtual methods of the super class. |
Virtual method of the "edited" signal | |
(skip) Padding for future expansion | |
(skip) Padding for future expansion | |
(skip) Padding for future expansion | |
(skip) Padding for future expansion | |
(skip) Padding for future expansion |
GtkCellRenderer * starred_cell_renderer_rating_new (void
);
Creates a new StarredCellRendererRating instance. Its default properties represent an immutable five-star rating.
Returns : |
The newly allocated cell renderer. |
"black-char"
property"black-char" guint : Read / Write
The character to use for assigned stars.
Default value: 0
"black-icon-name"
property"black-icon-name" gchar* : Read / Write
The icon to use for assigned stars.
Default value: NULL
"editable"
property"editable" gboolean : Read / Write
Whether the rating can be modified by the user.
Default value: FALSE
"icon-size"
property"icon-size" GtkIconSize : Read / Write
Size of star icons.
Default value: GTK_ICON_SIZE_MENU
"max-rating"
property"max-rating" gint : Read / Write
Maximum rating in stars.
Allowed values: >= 1
Default value: 5
"min-rating"
property"min-rating" gint : Read / Write
Minimum rating in stars.
Allowed values: [0,1]
Default value: 0
"rating"
property"rating" gint : Read / Write
Rating in stars.
Allowed values: >= 0
Default value: 0
"white-char"
property"white-char" guint : Read / Write
The character to use for missing stars.
Default value: 0
"white-icon-name"
property"white-icon-name" gchar* : Read / Write
The icon to use for missing stars.
Default value: NULL
"edited"
signalvoid user_function (StarredCellRendererRating *renderer,
gchar *path,
gint new_rating,
gpointer user_data) : Run Last
This signal is emitted after renderer
has been edited.
It is the responsibility of the application to update the model
and store new_rating
at the position indicated by path
.
|
the object which received the signal |
|
the path identifying the edited cell |
|
the new rating |
|
user data set when the signal handler was connected. |