Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
ratings.h File Reference
#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)
 

Macro Definition Documentation

◆ DT_VIEW_RATINGS_MASK

#define DT_VIEW_RATINGS_MASK   0x7

Definition at line 42 of file ratings.h.

Function Documentation

◆ dt_ratings_apply_on_image()

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 
)

◆ dt_ratings_apply_on_list()

void dt_ratings_apply_on_list ( GList *  list,
const int  rating,
const gboolean  undo_on 
)

◆ dt_ratings_get()

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().