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-2020 darktable developers.
4
5 darktable is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 darktable is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with darktable. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include <gtk/gtk.h>
22#include <inttypes.h>
23
29
37
39
42{
44 // For the primary sample, these are the current sample area,
45 // whether from colorpicker lib or an iop. They are used for showing
46 // the sample in the center view, and sampling in the pixelpipe.
47 float point[2];
50 // NOTE: only applies to live samples
51 gboolean locked;
52
54 // picked color in display profile, as picked from preview pixelpipe
56 // picked color converted display profile -> histogram profile (currently did
57 // nothing because we dropped histogram profile)
59 // picked color converted display profile -> Lab
61 // in scope profile with current statistic
62 int label_rgb[4];
63 // in display profile with current statistic
64 GdkRGBA swatch;
65
67 GtkWidget *container;
68 GtkWidget *color_patch;
69 GtkWidget *output_label;
71
72
73// clang-format off
74// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
75// vim: shiftwidth=2 expandtab tabstop=2 cindent
76// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
77// clang-format on
78
dt_lib_colorpicker_statistic_t
Definition colorpicker.h:31
@ DT_LIB_COLORPICKER_STATISTIC_MAX
Definition colorpicker.h:34
@ DT_LIB_COLORPICKER_STATISTIC_N
Definition colorpicker.h:35
@ DT_LIB_COLORPICKER_STATISTIC_MIN
Definition colorpicker.h:33
@ DT_LIB_COLORPICKER_STATISTIC_MEAN
Definition colorpicker.h:32
dt_lib_colorpicker_size_t
Definition colorpicker.h:25
@ DT_LIB_COLORPICKER_SIZE_POINT
Definition colorpicker.h:26
@ DT_LIB_COLORPICKER_SIZE_BOX
Definition colorpicker.h:27
dt_aligned_pixel_t lib_colorpicker_sample_statistics[DT_LIB_COLORPICKER_STATISTIC_N]
Definition colorpicker.h:38
float dt_boundingbox_t[4]
Definition darktable.h:467
Definition colorpicker.h:42
gboolean locked
Definition colorpicker.h:51
GdkRGBA swatch
Definition colorpicker.h:64
lib_colorpicker_sample_statistics display
Definition colorpicker.h:55
dt_lib_colorpicker_size_t size
Definition colorpicker.h:49
int label_rgb[4]
Definition colorpicker.h:62
GtkWidget * color_patch
Definition colorpicker.h:68
GtkWidget * container
Definition colorpicker.h:67
lib_colorpicker_sample_statistics scope
Definition colorpicker.h:58
GtkWidget * output_label
Definition colorpicker.h:69
dt_boundingbox_t box
Definition colorpicker.h:48
lib_colorpicker_sample_statistics lab
Definition colorpicker.h:60
Definition ashift_lsd.c:181