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#pragma once
31
32#include "paint.h"
33#include <gtk/gtk.h>
34G_BEGIN_DECLS
35#define DTGTK_TOGGLEBUTTON(obj) \
36 G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_togglebutton_get_type(), GtkDarktableToggleButton)
37#define DTGTK_TOGGLEBUTTON_CLASS(klass) \
38 G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_togglebutton_get_type(), GtkDarktableToggleButtonClass)
39#define DTGTK_IS_TOGGLEBUTTON(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_togglebutton_get_type())
40#define DTGTK_IS_TOGGLEBUTTON_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_togglebutton_get_type())
41
51
56
58
60GtkWidget *dtgtk_togglebutton_new(DTGTKCairoPaintIconFunc paint, gint paintflag, void *paintdata);
61
64 gint paintflags, void *paintdata);
65
66G_END_DECLS
67
68// clang-format off
69// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
70// vim: shiftwidth=2 expandtab tabstop=2 cindent
71// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
72// clang-format on
73
void(* DTGTKCairoPaintIconFunc)(cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data)
Definition dtgtk/paint.h:74
Stroke-level path sampling and runtime-state API for drawlayer.
struct _GtkWidget GtkWidget
Definition splash.h:29
Definition togglebutton.h:53
GtkToggleButtonClass parent_class
Definition togglebutton.h:54
Definition togglebutton.h:43
GdkRGBA bg
Definition togglebutton.h:48
gint icon_flags
Definition togglebutton.h:46
GtkToggleButton widget
Definition togglebutton.h:44
GtkWidget * canvas
Definition togglebutton.h:49
void * icon_data
Definition togglebutton.h:47
DTGTKCairoPaintIconFunc icon
Definition togglebutton.h:45
GType dtgtk_togglebutton_get_type(void)
Definition togglebutton.c:166
struct _GtkDarktableToggleButtonClass GtkDarktableToggleButtonClass
void dtgtk_togglebutton_set_paint(GtkDarktableToggleButton *button, DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata)
Definition togglebutton.c:185
struct _GtkDarktableToggleButton GtkDarktableToggleButton
GtkWidget * dtgtk_togglebutton_new(DTGTKCairoPaintIconFunc paint, gint paintflag, void *paintdata)
Definition togglebutton.c:152