Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
resetlabel.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2010, 2012 johannes hanika.
4 Copyright (C) 2011, 2014, 2016 Tobias Ellinghaus.
5 Copyright (C) 2012 Richard Wonka.
6 Copyright (C) 2013, 2015 Roman Lebedev.
7 Copyright (C) 2020 Pascal Obry.
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#pragma once
25
26#include "develop/imageop.h"
27#include <gtk/gtk.h>
28
29G_BEGIN_DECLS
30#define DTGTK_RESET_LABEL(obj) \
31 G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_reset_label_get_type(), GtkDarktableResetLabel)
32#define DTGTK_RESET_LABEL_CLASS(klass) \
33 G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_reset_label_get_type(), GtkDarktableButtonClass)
34#define DTGTK_IS_RESET_LABEL(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_reset_label_get_type())
35#define DTGTK_IS_RESET_LABEL_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_reset_label_get_type())
36
38{
39 GtkEventBox widget;
40 GtkLabel *lb;
41 dt_iop_module_t *module;
42 int offset; // offset in params to reset
43 int size; // size of param to reset
45
50
52
54GtkWidget *dtgtk_reset_label_new(const gchar *label, dt_iop_module_t *module, void *param, int param_size);
56void dtgtk_reset_label_set_text(GtkDarktableResetLabel *label, const gchar *str);
57
58G_END_DECLS
59
60// clang-format off
61// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
62// vim: shiftwidth=2 expandtab tabstop=2 cindent
63// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
64// clang-format on
65
GtkWidget * dtgtk_reset_label_new(const gchar *label, dt_iop_module_t *module, void *param, int param_size)
Definition resetlabel.c:58
GType dtgtk_reset_label_get_type(void)
Definition resetlabel.c:78
struct _GtkDarktableResetLabelClass GtkDarktableResetLabelClass
void dtgtk_reset_label_set_text(GtkDarktableResetLabel *label, const gchar *str)
Definition resetlabel.c:96
struct _GtkDarktableResetLabel GtkDarktableResetLabel
struct _GtkWidget GtkWidget
Definition splash.h:29
Definition resetlabel.h:47
GtkEventBoxClass parent_class
Definition resetlabel.h:48
Definition resetlabel.h:38
int size
Definition resetlabel.h:43
GtkEventBox widget
Definition resetlabel.h:39
dt_iop_module_t *int offset
Definition resetlabel.h:42
GtkLabel * lb
Definition resetlabel.h:40
Definition imageop.h:216