Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
expander.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2015 Roman Lebedev.
4 Copyright (C) 2016 Tobias Ellinghaus.
5 Copyright (C) 2020 Pascal Obry.
6 Copyright (C) 2022 Martin Baƙinka.
7
8 darktable is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 darktable is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with darktable. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#pragma once
23
24#include <glib-object.h>
25#include <gtk/gtk.h>
26
27G_BEGIN_DECLS
28
29#define DTGTK_TYPE_EXPANDER (dtgtk_expander_get_type())
30#define DTGTK_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), DTGTK_TYPE_EXPANDER, GtkDarktableExpander))
31#define DTGTK_IS_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), DTGTK_TYPE_EXPANDER))
32#define DTGTK_EXPANDER_CLASS(klass) \
33 (G_TYPE_CHECK_CLASS_CAST((klass), DTGTK_TYPE_EXPANDER, GtkDarktableExpanderClass))
34#define DTGTK_IS_EXPANDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), DTGTK_TYPE_EXPANDER))
35#define DTGTK_EXPANDER_GET_CLASS(obj) \
36 (G_TYPE_INSTANCE_GET_CLASS((obj), DTGTK_TYPE_EXPANDER, GtkDarktableExpanderClass))
37
48
53
55
61
62void dtgtk_expander_set_expanded(GtkDarktableExpander *expander, gboolean expanded);
64
66
67G_END_DECLS
68
69// clang-format off
70// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
71// vim: shiftwidth=2 expandtab tabstop=2 cindent
72// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
73// clang-format on
74
GtkWidget * dtgtk_expander_get_header_event_box(GtkDarktableExpander *expander)
Definition expander.c:49
gboolean dtgtk_expander_get_expanded(GtkDarktableExpander *expander)
Definition expander.c:89
GtkWidget * dtgtk_expander_get_header(GtkDarktableExpander *expander)
Definition expander.c:42
GtkWidget * dtgtk_expander_get_body_event_box(GtkDarktableExpander *expander)
Definition expander.c:63
GtkWidget * dtgtk_expander_get_frame(GtkDarktableExpander *expander)
Definition expander.c:35
GType dtgtk_expander_get_type(void)
GtkWidget * dtgtk_expander_get_body(GtkDarktableExpander *expander)
Definition expander.c:56
void dtgtk_expander_set_expanded(GtkDarktableExpander *expander, gboolean expanded)
Definition expander.c:70
GtkWidget * dtgtk_expander_new(GtkWidget *header, GtkWidget *body)
Definition expander.c:101
struct _GtkDarktableExpander GtkDarktableExpander
struct _GtkDarktableExpanderClass GtkDarktableExpanderClass
struct _GtkWidget GtkWidget
Definition splash.h:29
Definition expander.h:50
GtkBoxClass parent_class
Definition expander.h:51
Definition expander.h:39
gboolean expanded
Definition expander.h:41
GtkWidget * body_evb
Definition expander.h:46
GtkWidget * header_evb
Definition expander.h:44
GtkWidget * header
Definition expander.h:43
GtkWidget * frame
Definition expander.h:42
GtkWidget * body
Definition expander.h:45
GtkBox box
Definition expander.h:40