Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
masks_history.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 darktable. If not, see <http://www.gnu.org/licenses/>.
17*/
18
30#ifndef DT_DEVELOP_MASKS_MASKS_HISTORY_H
31#define DT_DEVELOP_MASKS_MASKS_HISTORY_H
32
33/* Deliberately does NOT include develop/masks.h: that header includes this one at
34 * its bottom (dt_masks_form_t must be complete first), so including it back formed
35 * an include cycle that only #pragma once made compilable. Every declaration below
36 * takes its arguments by POINTER, so tag declarations are sufficient. */
37
38#include <glib.h>
39
40struct dt_develop_t;
41struct dt_masks_form_t;
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
49
52void dt_masks_form_unref(struct dt_masks_form_t *form);
53
62struct dt_masks_form_t *dt_masks_cow_touch(struct dt_develop_t *dev, struct dt_masks_form_t *form);
63
66void dt_masks_replace_current_forms(struct dt_develop_t *dev, GList *forms);
67
70GList *dt_masks_snapshot_current_forms(struct dt_develop_t *dev, gboolean reset_changed);
71
85
86#ifdef __cplusplus
87}
88#endif
89#endif // DT_DEVELOP_MASKS_MASKS_HISTORY_H
void dt_masks_release_all_forms(struct dt_develop_t *dev)
struct dt_masks_form_t * dt_masks_form_ref(struct dt_masks_form_t *form)
void dt_masks_form_unref(struct dt_masks_form_t *form)
GList * dt_masks_snapshot_current_forms(struct dt_develop_t *dev, gboolean reset_changed)
void dt_masks_replace_current_forms(struct dt_develop_t *dev, GList *forms)
struct dt_masks_form_t * dt_masks_cow_touch(struct dt_develop_t *dev, struct dt_masks_form_t *form)