Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
colorlabels.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2010 Henrik Andersson.
4 Copyright (C) 2010, 2012 johannes hanika.
5 Copyright (C) 2011 Robert Bieber.
6 Copyright (C) 2011-2014, 2016 Tobias Ellinghaus.
7 Copyright (C) 2012 Richard Wonka.
8 Copyright (C) 2013 Jérémy Rosen.
9 Copyright (C) 2013 Simon Spannagel.
10 Copyright (C) 2019-2020 Philippe Weyland.
11 Copyright (C) 2020 Aldric Renaudin.
12 Copyright (C) 2021 Diederik Ter Rahe.
13 Copyright (C) 2022 Martin Bařinka.
14 Copyright (C) 2025 Alynx Zhou.
15 Copyright (C) 2025-2026 Aurélien PIERRE.
16
17 darktable is free software: you can redistribute it and/or modify
18 it under the terms of the GNU General Public License as published by
19 the Free Software Foundation, either version 3 of the License, or
20 (at your option) any later version.
21
22 darktable is distributed in the hope that it will be useful,
23 but WITHOUT ANY WARRANTY; without even the implied warranty of
24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 GNU General Public License for more details.
26
27 You should have received a copy of the GNU General Public License
28 along with darktable. If not, see <http://www.gnu.org/licenses/>.
29*/
30#ifndef DT_METADATA_COLORLABELS_H
31#define DT_METADATA_COLORLABELS_H
32
33#include <gtk/gtk.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
50extern const char *dt_colorlabels_name[];
51
53int dt_colorlabels_get_labels(const int32_t imgid);
55void dt_colorlabels_remove_labels(const int32_t imgid);
57void dt_colorlabels_set_label(const int32_t imgid, const int color);
59void dt_colorlabels_set_labels(const int32_t imgid, const int colors);
61void dt_colorlabels_toggle_label_on_list(GList *list, const int color, const gboolean undo_on);
63void dt_colorlabels_remove_label(const int32_t imgid, const int color);
65const char *dt_colorlabels_to_string(int label);
67int dt_colorlabels_check_label(const int32_t imgid, const int color);
69void dt_colorlabels_cleanup(void);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif // DT_METADATA_COLORLABELS_H
76
77// clang-format off
78// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
79// vim: shiftwidth=2 expandtab tabstop=2 cindent
80// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
81// clang-format on
void dt_colorlabels_remove_label(const int32_t imgid, const int color)
dt_colorlables_enum
Definition colorlabels.h:41
@ DT_COLORLABELS_PURPLE
Definition colorlabels.h:46
@ DT_COLORLABELS_GREEN
Definition colorlabels.h:44
@ DT_COLORLABELS_YELLOW
Definition colorlabels.h:43
@ DT_COLORLABELS_BLUE
Definition colorlabels.h:45
@ DT_COLORLABELS_LAST
Definition colorlabels.h:47
@ DT_COLORLABELS_RED
Definition colorlabels.h:42
void dt_colorlabels_remove_labels(const int32_t imgid)
enum dt_colorlables_enum dt_colorlabels_enum
void dt_colorlabels_cleanup(void)
int dt_colorlabels_get_labels(const int32_t imgid)
Definition colorlabels.c:79
int dt_colorlabels_check_label(const int32_t imgid, const int color)
void dt_colorlabels_set_label(const int32_t imgid, const int color)
void dt_colorlabels_toggle_label_on_list(GList *list, const int color, const gboolean undo_on)
const char * dt_colorlabels_to_string(int label)
const char * dt_colorlabels_name[]
Definition colorlabels.c:46
void dt_colorlabels_set_labels(const int32_t imgid, const int colors)
Definition colorlabels.c:84
const dt_collection_filter_flag_t colors[6]
Definition filter.c:302
GdkRGBA color[]
Definition geotagging.c:541