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-2021 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 "develop/imageop.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27GtkWidget *dt_bauhaus_slider_from_params(dt_iop_module_t *self, const char *param);
28
29GtkWidget *dt_bauhaus_combobox_from_params(dt_iop_module_t *self, const char *param);
30
31GtkWidget *dt_bauhaus_toggle_from_params(dt_iop_module_t *self, const char *param);
32
33GtkWidget *dt_iop_togglebutton_new(dt_iop_module_t *self, const char *section, const gchar *label, const gchar *ctrl_label,
34 GCallback callback, gboolean local, guint accel_key, GdkModifierType mods,
35 DTGTKCairoPaintIconFunc paint, GtkWidget *box);
36
37GtkWidget *dt_iop_button_new(dt_iop_module_t *self, const gchar *label,
38 GCallback callback, gboolean local, guint accel_key, GdkModifierType mods,
39 DTGTKCairoPaintIconFunc paint, gint paintflags, GtkWidget *box);
40
41/* returns up or !up depending on the masks_updown preference */
42gboolean dt_mask_scroll_increases(int up);
43
44#ifdef __cplusplus
45}
46#endif
47
48// clang-format off
49// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
50// vim: shiftwidth=2 expandtab tabstop=2 cindent
51// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
52// clang-format on
53
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:309
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:285
GtkWidget * dt_bauhaus_toggle_from_params(dt_iop_module_t *self, const char *param)
Definition imageop_gui.c:244
GtkWidget * dt_bauhaus_slider_from_params(dt_iop_module_t *self, const char *param)
Definition imageop_gui.c:75
gboolean dt_mask_scroll_increases(int up)
Definition imageop_gui.c:334
GtkWidget * dt_bauhaus_combobox_from_params(dt_iop_module_t *self, const char *param)
Definition imageop_gui.c:180
void(* DTGTKCairoPaintIconFunc)(cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data)
Definition paint.h:46
Definition imageop.h:182