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
23
typedef
struct
dt_gui_module_t
dt_gui_module_t
;
24
42
struct
dt_gui_module_t
43
{
44
/* list of children widgets */
45
GList *
widget_list
;
46
GList *
widget_list_bh
;
47
49
char
*
name
;
50
51
char
*
instance_name
;
52
54
char
*
view
;
55
57
gboolean
deprecated
;
58
62
int (*
focus
)(
dt_gui_module_t
*module, gboolean toggle);
63
70
void
(*
ensure_visible
)(
dt_gui_module_t
*module);
71
72
char
*
accel_path
;
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
void
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
dt_gui_module_t
The dt_gui_module_t type is the intersection between a dt_lib_module_t and a dt_iop_module_t structur...
Definition
gui_module_api.h:43
dt_gui_module_t::ensure_visible
void(* ensure_visible)(dt_gui_module_t *module)
Definition
gui_module_api.h:70
dt_gui_module_t::deprecated
gboolean deprecated
Definition
gui_module_api.h:57
dt_gui_module_t::view
char * view
Definition
gui_module_api.h:54
dt_gui_module_t::name
char * name
Definition
gui_module_api.h:49
dt_gui_module_t::widget_list_bh
GList * widget_list_bh
Definition
gui_module_api.h:46
dt_gui_module_t::accel_path
char * accel_path
Definition
gui_module_api.h:72
dt_gui_module_t::focus
int(* focus)(dt_gui_module_t *module, gboolean toggle)
Definition
gui_module_api.h:62
dt_gui_module_t::widget_list
GList * widget_list
Definition
gui_module_api.h:45
dt_gui_module_t::instance_name
char * instance_name
Definition
gui_module_api.h:51
src
common
gui_module_api.h
Generated by
1.9.8