Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
togglebutton.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2010 Henrik Andersson.
4 Copyright (C) 2010 Pascal de Bruijn.
5 Copyright (C) 2011-2012 johannes hanika.
6 Copyright (C) 2012 José Carlos García Sogo.
7 Copyright (C) 2012 Richard Wonka.
8 Copyright (C) 2012, 2014, 2016, 2018 Tobias Ellinghaus.
9 Copyright (C) 2013-2015 Roman Lebedev.
10 Copyright (C) 2017 luzpaz.
11 Copyright (C) 2020 Marco.
12 Copyright (C) 2020 Pascal Obry.
13 Copyright (C) 2022 Aldric Renaudin.
14 Copyright (C) 2022 Martin Bařinka.
15
16 darktable is free software: you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20
21 darktable is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
25
26 You should have received a copy of the GNU General Public License
27 along with darktable. If not, see <http://www.gnu.org/licenses/>.
28*/
29
30#ifndef DT_WIDGETS_TOGGLEBUTTON_H
31#define DT_WIDGETS_TOGGLEBUTTON_H
32
33#include "paint.h"
34#include <gtk/gtk.h>
35G_BEGIN_DECLS
36#define DTGTK_TOGGLEBUTTON(obj) \
37 G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_togglebutton_get_type(), GtkDarktableToggleButton)
38#define DTGTK_TOGGLEBUTTON_CLASS(klass) \
39 G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_togglebutton_get_type(), GtkDarktableToggleButtonClass)
40#define DTGTK_IS_TOGGLEBUTTON(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_togglebutton_get_type())
41#define DTGTK_IS_TOGGLEBUTTON_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_togglebutton_get_type())
42
52
57
59
61GtkWidget *dtgtk_togglebutton_new(DTGTKCairoPaintIconFunc paint, gint paintflag, void *paintdata);
62
65 gint paintflags, void *paintdata);
66
67G_END_DECLS
68
69#endif // DT_WIDGETS_TOGGLEBUTTON_H
70
71// clang-format off
72// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
73// vim: shiftwidth=2 expandtab tabstop=2 cindent
74// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
75// clang-format on
76
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition colorspaces.h:98
GtkToggleButtonClass parent_class
DTGTKCairoPaintIconFunc icon
GType dtgtk_togglebutton_get_type(void)
struct _GtkDarktableToggleButtonClass GtkDarktableToggleButtonClass
void dtgtk_togglebutton_set_paint(GtkDarktableToggleButton *button, DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata)
struct _GtkDarktableToggleButton GtkDarktableToggleButton
GtkWidget * dtgtk_togglebutton_new(DTGTKCairoPaintIconFunc paint, gint paintflag, void *paintdata)
void(* DTGTKCairoPaintIconFunc)(cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data)