Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
src/apps/ansel-chart/common.h
Go to the documentation of this file.
1
/*
2
* This file is part of darktable,
3
* Copyright (C) 2016 johannes hanika.
4
* Copyright (C) 2016, 2020 Tobias Ellinghaus.
5
* Copyright (C) 2020 Aurélien PIERRE.
6
* Copyright (C) 2020 Pascal Obry.
7
* Copyright (C) 2021 Sakari Kapanen.
8
* Copyright (C) 2022 Martin Bařinka.
9
*
10
* darktable is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
13
* (at your option) any later version.
14
*
15
* darktable is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with darktable. If not, see <http://www.gnu.org/licenses/>.
22
*/
23
24
#ifndef DT_APPS_ANSEL_CHART_COMMON_H
25
#define DT_APPS_ANSEL_CHART_COMMON_H
26
27
#include "
apps/ansel-chart/colorchart.h
"
28
29
enum
30
{
31
TOP_LEFT
= 0,
32
TOP_RIGHT
= 1,
33
BOTTOM_RIGHT
= 2,
34
BOTTOM_LEFT
= 3
35
};
36
37
typedef
struct
image_t
38
{
39
GtkWidget
*
drawing_area
;
40
41
cairo_surface_t *
surface
;
42
cairo_pattern_t *
image
;
43
int
width
,
height
;
44
float
*
xyz
;
45
float
scale
;
46
int
offset_x
,
offset_y
;
47
float
shrink
;
48
49
point_t
bb
[4];
50
51
chart_t
**
chart
;
52
gboolean
draw_colored
;
53
}
image_t
;
54
55
56
#endif
// DT_APPS_ANSEL_CHART_COMMON_H
57
58
// clang-format off
59
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
60
// vim: shiftwidth=2 expandtab tabstop=2 cindent
61
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
62
// clang-format on
63
colorchart.h
GtkWidget
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition
colorspaces.h:98
BOTTOM_RIGHT
@ BOTTOM_RIGHT
Definition
src/apps/ansel-chart/common.h:33
TOP_LEFT
@ TOP_LEFT
Definition
src/apps/ansel-chart/common.h:31
BOTTOM_LEFT
@ BOTTOM_LEFT
Definition
src/apps/ansel-chart/common.h:34
TOP_RIGHT
@ TOP_RIGHT
Definition
src/apps/ansel-chart/common.h:32
chart_t
Definition
colorchart.h:49
image_t
Definition
src/apps/ansel-chart/common.h:38
image_t::drawing_area
GtkWidget * drawing_area
Definition
src/apps/ansel-chart/common.h:39
image_t::height
int height
Definition
src/apps/ansel-chart/common.h:43
image_t::width
int width
Definition
src/apps/ansel-chart/common.h:43
image_t::scale
float scale
Definition
src/apps/ansel-chart/common.h:45
image_t::offset_x
int offset_x
Definition
src/apps/ansel-chart/common.h:46
image_t::chart
chart_t ** chart
Definition
src/apps/ansel-chart/common.h:51
image_t::draw_colored
gboolean draw_colored
Definition
src/apps/ansel-chart/common.h:52
image_t::offset_y
int offset_y
Definition
src/apps/ansel-chart/common.h:46
image_t::image
cairo_pattern_t * image
Definition
src/apps/ansel-chart/common.h:42
image_t::surface
cairo_surface_t * surface
Definition
src/apps/ansel-chart/common.h:41
image_t::shrink
float shrink
Definition
src/apps/ansel-chart/common.h:47
image_t::bb
point_t bb[4]
Definition
src/apps/ansel-chart/common.h:49
image_t::xyz
float * xyz
Definition
src/apps/ansel-chart/common.h:44
point_t
Definition
censorize.c:77
src
apps
ansel-chart
common.h
Generated by
1.9.8