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
27
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
37
51 const char *confname, const char *label,
52 GtkBox *parent, GtkPackType pack);
53// routine to be called from gui_update
55
56// routine to hide the collapsible section
58
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
void dt_gui_hide_collapsible_section(dt_gui_collapsible_section_t *cs)
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.
void dt_gui_update_collapsible_section(dt_gui_collapsible_section_t *cs)
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition colorspaces.h:98