Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
collapsible_section.h
Go to the documentation of this file.
1
/*
2
* This file is part of Ansel,
3
* Copyright (C) 2026 Aurélien PIERRE.
4
*
5
* Ansel 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
* Ansel 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 Ansel. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef DT_WIDGETS_COLLAPSIBLE_SECTION_H
20
#define DT_WIDGETS_COLLAPSIBLE_SECTION_H
21
22
/* A titled section that folds away, remembering whether the user left it open. */
23
24
#include <gtk/gtk.h>
25
26
G_BEGIN_DECLS
27
28
typedef
struct
dt_gui_collapsible_section_t
29
{
30
GtkBox *
parent
;
// the parent widget
31
const
char
*
confname
;
// configuration name for the toggle status
32
GtkWidget
*
toggle
;
// toggle button
33
GtkWidget
*
expander
;
// the expander
34
GtkBox *
container
;
// the container for all widgets in the section
35
GtkWidget
*
label
;
// the section label
36
}
dt_gui_collapsible_section_t
;
37
50
void
dt_gui_new_collapsible_section
(
dt_gui_collapsible_section_t
*cs,
51
const
char
*confname,
const
char
*label,
52
GtkBox *parent,
GtkPackType
pack
);
53
// routine to be called from gui_update
54
void
dt_gui_update_collapsible_section
(
dt_gui_collapsible_section_t
*cs);
55
56
// routine to hide the collapsible section
57
void
dt_gui_hide_collapsible_section
(
dt_gui_collapsible_section_t
*cs);
58
59
G_END_DECLS
60
61
#endif
// DT_WIDGETS_COLLAPSIBLE_SECTION_H
62
63
// clang-format off
64
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
65
// vim: shiftwidth=2 expandtab tabstop=2 cindent
66
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
67
// clang-format on
dt_gui_hide_collapsible_section
void dt_gui_hide_collapsible_section(dt_gui_collapsible_section_t *cs)
Definition
collapsible_section.c:92
dt_gui_new_collapsible_section
void dt_gui_new_collapsible_section(dt_gui_collapsible_section_t *cs, const char *confname, const char *label, GtkBox *parent, GtkPackType pack)
Create a collapsible section and pack it into the parent box.
Definition
collapsible_section.c:99
dt_gui_update_collapsible_section
void dt_gui_update_collapsible_section(dt_gui_collapsible_section_t *cs)
Definition
collapsible_section.c:77
GtkWidget
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition
colorspaces.h:98
L
const float L
Definition
colorspaces_inline_conversions.h:494
dt_gui_collapsible_section_t
Definition
collapsible_section.h:29
dt_gui_collapsible_section_t::parent
GtkBox * parent
Definition
collapsible_section.h:30
dt_gui_collapsible_section_t::expander
GtkWidget * expander
Definition
collapsible_section.h:33
dt_gui_collapsible_section_t::label
GtkWidget * label
Definition
collapsible_section.h:35
dt_gui_collapsible_section_t::confname
const char * confname
Definition
collapsible_section.h:31
dt_gui_collapsible_section_t::container
GtkBox * container
Definition
collapsible_section.h:34
dt_gui_collapsible_section_t::toggle
GtkWidget * toggle
Definition
collapsible_section.h:32
src
widgets
collapsible_section.h
Generated by
1.9.8