Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
thumbnail_btn.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 Aldric Renaudin.
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_THUMBNAIL_BTN_H
26#define DT_WIDGETS_THUMBNAIL_BTN_H
27
28#include "paint.h"
29#include <gtk/gtk.h>
30G_BEGIN_DECLS
31#define DTGTK_THUMBNAIL_BTN(obj) \
32 G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_thumbnail_btn_get_type(), GtkDarktableThumbnailBtn)
33#define DTGTK_THUMBNAIL_BTN_CLASS(klass) \
34 G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_button_get_type(), GtkDarktableThumbnailBtnClass)
35#define DTGTK_IS_THUMBNAIL_BTN(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_thumbnail_btn_get_type())
36#define DTGTK_IS_THUMBNAIL_BTN_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_thumbnail_btn_get_type())
37
38
47
52
54
56GtkWidget *dtgtk_thumbnail_btn_new(DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata);
57
59
60G_END_DECLS
61
62#endif // DT_WIDGETS_THUMBNAIL_BTN_H
63
64// clang-format off
65// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
66// vim: shiftwidth=2 expandtab tabstop=2 cindent
67// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
68// clang-format on
69
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition colorspaces.h:98
GtkDrawingAreaClass parent_class
DTGTKCairoPaintIconFunc icon
GType dtgtk_thumbnail_btn_get_type(void)
struct _GtkDarktableThumbnailBtnClass GtkDarktableThumbnailBtnClass
GtkWidget * dtgtk_thumbnail_btn_new(DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata)
struct _GtkDarktableThumbnailBtn GtkDarktableThumbnailBtn
gboolean dtgtk_thumbnail_btn_is_hidden(GtkWidget *widget)
void(* DTGTKCairoPaintIconFunc)(cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data)