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) 2020 Aldric Renaudin.
4
5 darktable is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 darktable is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with darktable. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include "paint.h"
22#include <gtk/gtk.h>
23G_BEGIN_DECLS
24#define DTGTK_THUMBNAIL_BTN(obj) \
25 G_TYPE_CHECK_INSTANCE_CAST(obj, dtgtk_thumbnail_btn_get_type(), GtkDarktableThumbnailBtn)
26#define DTGTK_THUMBNAIL_BTN_CLASS(klass) \
27 G_TYPE_CHECK_CLASS_CAST(klass, dtgtk_button_get_type(), GtkDarktableThumbnailBtnClass)
28#define DTGTK_IS_THUMBNAIL_BTN(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, dtgtk_thumbnail_btn_get_type())
29#define DTGTK_IS_THUMBNAIL_BTN_CLASS(klass) G_TYPE_CHECK_CLASS_TYPE(obj, dtgtk_thumbnail_btn_get_type())
30
31
40
45
47
49GtkWidget *dtgtk_thumbnail_btn_new(DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata);
50
51gboolean dtgtk_thumbnail_btn_is_hidden(GtkWidget *widget);
52
53G_END_DECLS
54
55// clang-format off
56// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
57// vim: shiftwidth=2 expandtab tabstop=2 cindent
58// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
59// clang-format on
60
void(* DTGTKCairoPaintIconFunc)(cairo_t *cr, gint x, gint y, gint w, gint h, gint flags, void *data)
Definition paint.h:46
Definition thumbnail_btn.h:42
GtkDrawingAreaClass parent_class
Definition thumbnail_btn.h:43
Definition thumbnail_btn.h:33
void * icon_data
Definition thumbnail_btn.h:37
GtkDrawingArea widget
Definition thumbnail_btn.h:34
gint icon_flags
Definition thumbnail_btn.h:36
gboolean hidden
Definition thumbnail_btn.h:38
DTGTKCairoPaintIconFunc icon
Definition thumbnail_btn.h:35
GType dtgtk_thumbnail_btn_get_type(void)
Definition thumbnail_btn.c:139
struct _GtkDarktableThumbnailBtnClass GtkDarktableThumbnailBtnClass
GtkWidget * dtgtk_thumbnail_btn_new(DTGTKCairoPaintIconFunc paint, gint paintflags, void *paintdata)
Definition thumbnail_btn.c:124
struct _GtkDarktableThumbnailBtn GtkDarktableThumbnailBtn
gboolean dtgtk_thumbnail_btn_is_hidden(GtkWidget *widget)
Definition thumbnail_btn.c:161