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#pragma once
19
20#include <glib.h>
21
23
42{
43 /* list of children widgets */
46
48 char *name;
49
51
53 char *view;
54
56 gboolean deprecated;
57
61 int (*focus)(dt_gui_module_t *module, gboolean toggle);
62
64};
65
66/* Cast dt_lib_module_t and dt_iop_module_t to dt_gui_module_t */
67#define DT_GUI_MODULE(x) ((dt_gui_module_t *)x)
The dt_gui_module_t type is the intersection between a dt_lib_module_t and a dt_iop_module_t structur...
int(* focus)(dt_gui_module_t *module, gboolean toggle)