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#pragma once
31
32#include <gtk/gtk.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
49extern const char *dt_colorlabels_name[];
50
52int dt_colorlabels_get_labels(const int32_t imgid);
54void dt_colorlabels_remove_labels(const int32_t imgid);
56void dt_colorlabels_set_label(const int32_t imgid, const int color);
58void dt_colorlabels_set_labels(const int32_t imgid, const int colors);
60void dt_colorlabels_toggle_label_on_list(GList *list, const int color, const gboolean undo_on);
62void dt_colorlabels_remove_label(const int32_t imgid, const int color);
64const char *dt_colorlabels_to_string(int label);
66int dt_colorlabels_check_label(const int32_t imgid, const int color);
68void dt_colorlabels_cleanup(void);
69
70#ifdef __cplusplus
71}
72#endif
73
74// clang-format off
75// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
76// vim: shiftwidth=2 expandtab tabstop=2 cindent
77// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
78// clang-format on
void dt_colorlabels_remove_label(const int32_t imgid, const int color)
Definition colorlabels.c:201
dt_colorlables_enum
Definition colorlabels.h:40
@ DT_COLORLABELS_PURPLE
Definition colorlabels.h:45
@ DT_COLORLABELS_GREEN
Definition colorlabels.h:43
@ DT_COLORLABELS_YELLOW
Definition colorlabels.h:42
@ DT_COLORLABELS_BLUE
Definition colorlabels.h:44
@ DT_COLORLABELS_LAST
Definition colorlabels.h:46
@ DT_COLORLABELS_RED
Definition colorlabels.h:41
void dt_colorlabels_remove_labels(const int32_t imgid)
Definition colorlabels.c:168
enum dt_colorlables_enum dt_colorlabels_enum
void dt_colorlabels_cleanup(void)
Definition colorlabels.c:219
int dt_colorlabels_get_labels(const int32_t imgid)
Definition colorlabels.c:89
int dt_colorlabels_check_label(const int32_t imgid, const int color)
Definition colorlabels.c:339
void dt_colorlabels_set_label(const int32_t imgid, const int color)
Definition colorlabels.c:183
void dt_colorlabels_toggle_label_on_list(GList *list, const int color, const gboolean undo_on)
Definition colorlabels.c:315
const char * dt_colorlabels_to_string(int label)
Definition colorlabels.c:363
const char * dt_colorlabels_name[]
Definition colorlabels.c:51
void dt_colorlabels_set_labels(const int32_t imgid, const int colors)
Definition colorlabels.c:111
const dt_collection_filter_flag_t colors[6]
Definition filter.c:303