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 Copyright (C) 2026 Guillaume Stutin.
5
6 Ansel is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 Ansel is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Ansel. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef DT_COMMON_GUI_MODULE_API_H
20#define DT_COMMON_GUI_MODULE_API_H
21
22#include <glib.h>
23
25
44{
45 /* list of children widgets */
48
50 char *name;
51
55
57 char *view;
58
60 gboolean deprecated;
61
65 int (*focus)(dt_gui_module_t *module, gboolean toggle);
66
74
76};
77
78/* Cast dt_lib_module_t and dt_iop_module_t to dt_gui_module_t */
79#define DT_GUI_MODULE(x) ((dt_gui_module_t *)x)
80#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)
char * instance_accel_path
int(* focus)(dt_gui_module_t *module, gboolean toggle)