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#pragma once
26
27#include "paint.h"
28#include <gtk/gtk.h>
29G_BEGIN_DECLS
30#define DTGTK_THUMBNAIL_BTN(obj) \
31 G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_thumbnail_btn_get_type(), GtkDarktableThumbnailBtn)
32#define DTGTK_THUMBNAIL_BTN_CLASS(klass) \
33 G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_button_get_type(), GtkDarktableThumbnailBtnClass)
34#define DTGTK_IS_THUMBNAIL_BTN(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_thumbnail_btn_get_type())
35#define DTGTK_IS_THUMBNAIL_BTN_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_thumbnail_btn_get_type())
36
37
46
51
53
55GtkWidget *dtgtk_thumbnail_btn_new(DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata);
56
58
59G_END_DECLS
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
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 thumbnail_btn.h:48
GtkDrawingAreaClass parent_class
Definition thumbnail_btn.h:49
Definition thumbnail_btn.h:39
void * icon_data
Definition thumbnail_btn.h:43
GtkDrawingArea widget
Definition thumbnail_btn.h:40
gint icon_flags
Definition thumbnail_btn.h:42
gboolean hidden
Definition thumbnail_btn.h:44
DTGTKCairoPaintIconFunc icon
Definition thumbnail_btn.h:41
GType dtgtk_thumbnail_btn_get_type(void)
Definition thumbnail_btn.c:146
struct _GtkDarktableThumbnailBtnClass GtkDarktableThumbnailBtnClass
GtkWidget * dtgtk_thumbnail_btn_new(DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata)
Definition thumbnail_btn.c:131
struct _GtkDarktableThumbnailBtn GtkDarktableThumbnailBtn
gboolean dtgtk_thumbnail_btn_is_hidden(GtkWidget *widget)
Definition thumbnail_btn.c:168