Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
imageop_gui.h
Go to the documentation of this file.
1 /*
2 This file is part of darktable,
3 Copyright (C) 2009-2011, 2014 johannes hanika.
4 Copyright (C) 2012 Richard Wonka.
5 Copyright (C) 2016 Tobias Ellinghaus.
6 Copyright (C) 2020, 2022 Diederik Ter Rahe.
7 Copyright (C) 2020-2021 Pascal Obry.
8 Copyright (C) 2022 Martin Baƙinka.
9 Copyright (C) 2025 Alynx Zhou.
10
11 darktable is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 darktable is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with darktable. If not, see <http://www.gnu.org/licenses/>.
23*/
24
25#pragma once
26
27#include "control/signal.h"
28#include "develop/imageop.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
35
37
39
40GtkWidget *dt_iop_togglebutton_new(dt_iop_module_t *self, const char *section, const gchar *label, const gchar *ctrl_label,
41 GCallback callback, gboolean local, guint accel_key, GdkModifierType mods,
43
44GtkWidget *dt_iop_button_new(dt_iop_module_t *self, const gchar *label,
45 GCallback callback, gboolean local, guint accel_key, GdkModifierType mods,
46 DTGTKCairoPaintIconFunc paint, gint paintflags, GtkWidget *box);
47
48/* returns up or !up depending on the masks_updown preference */
49gboolean dt_mask_scroll_increases(int up);
50
51#ifdef __cplusplus
52}
53#endif
54
55// clang-format off
56// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
57// vim: shiftwidth=2 expandtab tabstop=2 cindent
58// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
59// clang-format on
void(* DTGTKCairoPaintIconFunc)(cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data)
Definition dtgtk/paint.h:74
GtkWidget * dt_iop_button_new(dt_iop_module_t *self, const gchar *label, GCallback callback, gboolean local, guint accel_key, GdkModifierType mods, DTGTKCairoPaintIconFunc paint, gint paintflags, GtkWidget *box)
Definition imageop_gui.c:314
GtkWidget * dt_iop_togglebutton_new(dt_iop_module_t *self, const char *section, const gchar *label, const gchar *ctrl_label, GCallback callback, gboolean local, guint accel_key, GdkModifierType mods, DTGTKCairoPaintIconFunc paint, GtkWidget *box)
Definition imageop_gui.c:290
GtkWidget * dt_bauhaus_toggle_from_params(dt_iop_module_t *self, const char *param)
Definition imageop_gui.c:249
GtkWidget * dt_bauhaus_slider_from_params(dt_iop_module_t *self, const char *param)
Definition imageop_gui.c:80
gboolean dt_mask_scroll_increases(int up)
Definition imageop_gui.c:339
GtkWidget * dt_bauhaus_combobox_from_params(dt_iop_module_t *self, const char *param)
Definition imageop_gui.c:185
struct _GtkWidget GtkWidget
Definition splash.h:29
Definition imageop.h:216