![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <gtk/gtk.h>#include <stdint.h>
Include dependency graph for ratings.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | DT_VIEW_RATINGS_MASK 0x7 |
Functions | |
| int | dt_ratings_get (const int32_t imgid) |
| void | dt_ratings_apply_on_image (const int32_t imgid, const int rating, const gboolean single_star_toggle, const gboolean undo_on, const gboolean group_on) |
| void | dt_ratings_apply_on_list (GList *list, const int rating, const gboolean undo_on) |
| void dt_ratings_apply_on_image | ( | const int32_t | imgid, |
| const int | rating, | ||
| const gboolean | single_star_toggle, | ||
| const gboolean | undo_on, | ||
| const gboolean | group_on | ||
| ) |
apply rating to the specified image
Definition at line 216 of file ratings.c.
References _pop_undo(), _ratings_apply(), _ratings_undo_data_free(), dt_grouping_add_grouped_images(), DT_METADATA_NOTICE_MESSAGE, dt_metadata_notify(), dt_undo_end_group(), dt_undo_get_global(), DT_UNDO_RATINGS, dt_undo_record(), dt_undo_start_group(), DT_VIEW_REJECT, and g_list_shorter_than().
Referenced by _event_rating_release(), and dt_lightroom_import().
| void dt_ratings_apply_on_list | ( | GList * | list, |
| const int | rating, | ||
| const gboolean | undo_on | ||
| ) |
apply rating to all images in the list
Definition at line 196 of file ratings.c.
References _pop_undo(), _ratings_apply(), _ratings_undo_data_free(), dt_collection_get_global(), dt_collection_hint_message(), DT_METADATA_NOTICE_TOAST, dt_metadata_notify(), dt_ratings_get_name(), dt_undo_end_group(), dt_undo_get_global(), DT_UNDO_RATINGS, dt_undo_record(), and dt_undo_start_group().
Referenced by _rating_callback().
| int dt_ratings_get | ( | const int32_t | imgid | ) |
get rating for the specified image
Definition at line 81 of file ratings.c.
References dt_image_cache_get(), dt_image_cache_read_release(), DT_IMAGE_REJECTED, DT_VIEW_RATINGS_MASK, DT_VIEW_REJECT, and dt_image_t::flags.
Referenced by _ratings_apply().