Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
doc_screenshot.h
Go to the documentation of this file.
1/*
2 This file is part of Ansel.
3 Copyright (C) 2026 Guillaume Stutin.
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_GUI_ACTIONS_DOC_SCREENSHOT_H
20#define DT_GUI_ACTIONS_DOC_SCREENSHOT_H
21
22#include <gtk/gtk.h>
23
46
49
53void dt_gui_doc_screenshot_set_directory(const char *path);
54
59
60/* Where the module inventories come from.
61 *
62 * The panel lists tool modules and darkroom modules by name, which are `dt_lib_module_t`
63 * and `dt_iop_module_t` -- and those live two and three layers ABOVE gui/. Reading them
64 * from here inverted the dependency graph four times over (tools/check_layering.sh), so the
65 * panel no longer knows what a module is: it asks for (widget, name) pairs and whoever
66 * knows how to produce them hands them over.
67 *
68 * src/darktable.c is where they are supplied from. That is not a fallback: the orchestrator
69 * is the one place that sits above every module by construction, so it is the only place
70 * that may legally see both lists. */
71
75void dt_gui_doc_screenshot_add_target(void *inventory, GtkWidget *widget, const char *name);
76
80typedef void (*dt_gui_doc_screenshot_source_t)(void *inventory);
81
85
86#endif // DT_GUI_ACTIONS_DOC_SCREENSHOT_H
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
struct _GtkWidget GtkWidget
GtkWidget, opaque, spelled exactly as GTK spells it.
Definition colorspaces.h:98
void dt_gui_doc_screenshot_window_show(void)
void dt_gui_doc_screenshot_register_source(const char *section, dt_gui_doc_screenshot_source_t source)
void dt_gui_doc_screenshot_set_directory(const char *path)
void dt_gui_doc_screenshot_enable(void)
void(* dt_gui_doc_screenshot_source_t)(void *inventory)
gboolean dt_gui_doc_screenshot_enabled(void)
void dt_gui_doc_screenshot_add_target(void *inventory, GtkWidget *widget, const char *name)
const char * name
Definition pdf.h:90