Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
icon.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2011 Henrik Andersson.
4 Copyright (C) 2012 Richard Wonka.
5 Copyright (C) 2012, 2014, 2016, 2018 Tobias Ellinghaus.
6 Copyright (C) 2013-2016 Roman Lebedev.
7 Copyright (C) 2017 luzpaz.
8 Copyright (C) 2020 Pascal Obry.
9 Copyright (C) 2022 Martin Baƙinka.
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#ifndef DT_WIDGETS_ICON_H
26#define DT_WIDGETS_ICON_H
27
28#include "paint.h"
29#include <gtk/gtk.h>
30G_BEGIN_DECLS
31#define DTGTK_ICON(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_icon_get_type(), GtkDarktableIcon)
32#define DTGTK_ICON_CLASS(klass) G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_icon_get_type(), GtkDarktableIconClass)
33#define DTGTK_IS_ICON(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_icon_get_type())
34#define DTGTK_IS_ICON_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_icon_get_type())
35
43
48
49GType dtgtk_icon_get_type(void);
50
52GtkWidget *dtgtk_icon_new(DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata);
53
55void dtgtk_icon_set_paint(GtkWidget *icon, DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata);
56
57G_END_DECLS
58
59#endif // DT_WIDGETS_ICON_H
60
61// clang-format off
62// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
63// vim: shiftwidth=2 expandtab tabstop=2 cindent
64// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
65// clang-format on
66
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition colorspaces.h:98
struct _GtkDarktableIcon GtkDarktableIcon
struct _GtkDarktableIconClass GtkDarktableIconClass
GtkWidget * dtgtk_icon_new(DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata)
Definition icon.c:70
GType dtgtk_icon_get_type(void)
Definition icon.c:82
void dtgtk_icon_set_paint(GtkWidget *icon, DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata)
Definition icon.c:99
GtkEventBoxClass parent_class
Definition icon.h:46
GtkEventBox widget
Definition icon.h:38
DTGTKCairoPaintIconFunc icon
Definition icon.h:39
void * icon_data
Definition icon.h:41
gint icon_flags
Definition icon.h:40
void(* DTGTKCairoPaintIconFunc)(cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data)