Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
colorpicker.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2011 Robert Bieber.
4 Copyright (C) 2012 Richard Wonka.
5 Copyright (C) 2014, 2016 Tobias Ellinghaus.
6 Copyright (C) 2016 Roman Lebedev.
7 Copyright (C) 2019 Edgardo Hoszowski.
8 Copyright (C) 2019-2020 Pascal Obry.
9 Copyright (C) 2020 Diederik Ter Rahe.
10 Copyright (C) 2021 Dan Torop.
11 Copyright (C) 2021 Mark-64.
12 Copyright (C) 2021 Ralf Brown.
13 Copyright (C) 2022 Martin Baƙinka.
14 Copyright (C) 2023 Alynx Zhou.
15
16 darktable is free software: you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20
21 darktable is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with darktable. If not, see <http://www.gnu.org/licenses/>.
28*/
29
30#pragma once
31
32#include <gtk/gtk.h>
33#include <inttypes.h>
34
40
48
50
53{
55 // For the primary sample, these are the current sample area,
56 // whether from colorpicker lib or an iop. They are used for showing
57 // the sample in the center view, and sampling in the pixelpipe.
58 float point[2];
61 // NOTE: only applies to live samples
62 gboolean locked;
63
65 // picked color in display profile, as picked from preview pixelpipe
67 // picked color converted display profile -> histogram profile (currently did
68 // nothing because we dropped histogram profile)
70 // picked color converted display profile -> Lab
72 // in scope profile with current statistic
73 int label_rgb[4];
74 // in display profile with current statistic
75 GdkRGBA swatch;
76
89 char backbuf_op[32];
90
96
97
98// clang-format off
99// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
100// vim: shiftwidth=2 expandtab tabstop=2 cindent
101// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
102// clang-format on
dt_lib_colorpicker_statistic_t
Definition colorpicker.h:42
@ DT_LIB_COLORPICKER_STATISTIC_MAX
Definition colorpicker.h:45
@ DT_LIB_COLORPICKER_STATISTIC_N
Definition colorpicker.h:46
@ DT_LIB_COLORPICKER_STATISTIC_MIN
Definition colorpicker.h:44
@ DT_LIB_COLORPICKER_STATISTIC_MEAN
Definition colorpicker.h:43
dt_lib_colorpicker_size_t
Definition colorpicker.h:36
@ DT_LIB_COLORPICKER_SIZE_POINT
Definition colorpicker.h:37
@ DT_LIB_COLORPICKER_SIZE_BOX
Definition colorpicker.h:38
dt_aligned_pixel_t lib_colorpicker_sample_statistics[DT_LIB_COLORPICKER_STATISTIC_N]
Definition colorpicker.h:49
float dt_boundingbox_t[4]
Definition darktable.h:630
struct _GtkWidget GtkWidget
Definition splash.h:29
Definition colorpicker.h:53
gboolean locked
Definition colorpicker.h:62
GdkRGBA swatch
Definition colorpicker.h:75
lib_colorpicker_sample_statistics display
Definition colorpicker.h:66
dt_lib_colorpicker_size_t size
Definition colorpicker.h:60
int label_rgb[4]
Definition colorpicker.h:73
GtkWidget * color_patch
Definition colorpicker.h:93
GtkWidget * container
Definition colorpicker.h:92
lib_colorpicker_sample_statistics scope
Definition colorpicker.h:69
char backbuf_op[32]
Global histogram stage backing this live sample.
Definition colorpicker.h:89
GtkWidget * output_label
Definition colorpicker.h:94
dt_boundingbox_t box
Definition colorpicker.h:59
lib_colorpicker_sample_statistics lab
Definition colorpicker.h:71
Definition ashift_lsd.c:192