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-2020 darktable developers.
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 <glib-object.h>
22#include <gtk/gtk.h>
23
24G_BEGIN_DECLS
25
26#define DTGTK_TYPE_EXPANDER (dtgtk_expander_get_type())
27#define DTGTK_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), DTGTK_TYPE_EXPANDER, GtkDarktableExpander))
28#define DTGTK_IS_EXPANDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), DTGTK_TYPE_EXPANDER))
29#define DTGTK_EXPANDER_CLASS(klass) \
30 (G_TYPE_CHECK_CLASS_CAST((klass), DTGTK_TYPE_EXPANDER, GtkDarktableExpanderClass))
31#define DTGTK_IS_EXPANDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), DTGTK_TYPE_EXPANDER))
32#define DTGTK_EXPANDER_GET_CLASS(obj) \
33 (G_TYPE_INSTANCE_GET_CLASS((obj), DTGTK_TYPE_EXPANDER, GtkDarktableExpanderClass))
34
36{
37 GtkBox box;
38 gboolean expanded;
39 GtkWidget *frame;
40 GtkWidget *header;
41 GtkWidget *header_evb;
42 GtkWidget *body;
43 GtkWidget *body_evb;
45
50
52
58
59void dtgtk_expander_set_expanded(GtkDarktableExpander *expander, gboolean expanded);
61
62GtkWidget *dtgtk_expander_new(GtkWidget *header, GtkWidget *body);
63
64G_END_DECLS
65
66// clang-format off
67// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
68// vim: shiftwidth=2 expandtab tabstop=2 cindent
69// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
70// clang-format on
71
GtkWidget * dtgtk_expander_get_header_event_box(GtkDarktableExpander *expander)
Definition expander.c:43
gboolean dtgtk_expander_get_expanded(GtkDarktableExpander *expander)
Definition expander.c:83
GtkWidget * dtgtk_expander_get_header(GtkDarktableExpander *expander)
Definition expander.c:36
GtkWidget * dtgtk_expander_get_body_event_box(GtkDarktableExpander *expander)
Definition expander.c:57
GtkWidget * dtgtk_expander_get_frame(GtkDarktableExpander *expander)
Definition expander.c:29
GType dtgtk_expander_get_type(void)
GtkWidget * dtgtk_expander_get_body(GtkDarktableExpander *expander)
Definition expander.c:50
void dtgtk_expander_set_expanded(GtkDarktableExpander *expander, gboolean expanded)
Definition expander.c:64
GtkWidget * dtgtk_expander_new(GtkWidget *header, GtkWidget *body)
Definition expander.c:95
struct _GtkDarktableExpander GtkDarktableExpander
struct _GtkDarktableExpanderClass GtkDarktableExpanderClass
Definition expander.h:47
GtkBoxClass parent_class
Definition expander.h:48
Definition expander.h:36
gboolean expanded
Definition expander.h:38
GtkWidget * body_evb
Definition expander.h:43
GtkWidget * header_evb
Definition expander.h:41
GtkWidget * header
Definition expander.h:40
GtkWidget * frame
Definition expander.h:39
GtkWidget * body
Definition expander.h:42
GtkBox box
Definition expander.h:37