Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
gui_module_api.h
Go to the documentation of this file.
1/*
2 This file is part of the Ansel project.
3 Copyright (C) 2025 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#ifndef DT_COMMON_GUI_MODULE_API_H
19#define DT_COMMON_GUI_MODULE_API_H
20
21#include <glib.h>
22
24
43{
44 /* list of children widgets */
47
49 char *name;
50
52
54 char *view;
55
57 gboolean deprecated;
58
62 int (*focus)(dt_gui_module_t *module, gboolean toggle);
63
71
73};
74
75/* Cast dt_lib_module_t and dt_iop_module_t to dt_gui_module_t */
76#define DT_GUI_MODULE(x) ((dt_gui_module_t *)x)
77#endif // DT_COMMON_GUI_MODULE_API_H
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
The dt_gui_module_t type is the intersection between a dt_lib_module_t and a dt_iop_module_t structur...
void(* ensure_visible)(dt_gui_module_t *module)
int(* focus)(dt_gui_module_t *module, gboolean toggle)