Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
progress.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2014, 2016-2017 Tobias Ellinghaus.
4 Copyright (C) 2020 Pascal Obry.
5 Copyright (C) 2022 Martin Baƙinka.
6
7 darktable is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 darktable is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with darktable. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef DT_CONTROL_PROGRESS_H
22#define DT_CONTROL_PROGRESS_H
23
24#include <glib.h>
25
26struct dt_control_t;
27struct _dt_job_t;
28
29struct _dt_progress_t;
31
33
34/* init the progress system, basically making sure that any global progress bar is hidden */
35void dt_control_progress_init(struct dt_control_t *control);
36
40 const gchar *message);
43
49 struct _dt_job_t *job);
53
58
63
67
70
73
74#endif // DT_CONTROL_PROGRESS_H
75
76// clang-format off
77// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
78// vim: shiftwidth=2 expandtab tabstop=2 cindent
79// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
80// clang-format on
81
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
double dt_control_progress_get_progress(dt_progress_t *progress)
Definition progress.c:379
gboolean dt_control_progress_cancellable(dt_progress_t *progress)
Definition progress.c:433
const gchar * dt_control_progress_get_message(dt_progress_t *progress)
Definition progress.c:387
void(* dt_progress_cancel_callback_t)(dt_progress_t *progress, void *data)
Definition progress.h:32
void dt_control_progress_set_message(struct dt_control_t *control, dt_progress_t *progress, const char *message)
Definition progress.c:395
void dt_control_progress_make_cancellable(struct dt_control_t *control, dt_progress_t *progress, dt_progress_cancel_callback_t cancel, void *data)
Definition progress.c:317
void dt_control_progress_init(struct dt_control_t *control)
Definition progress.c:230
void dt_control_progress_destroy(struct dt_control_t *control, dt_progress_t *progress)
Definition progress.c:296
void dt_control_progress_set_gui_data(dt_progress_t *progress, void *data)
Definition progress.c:410
void dt_control_progress_set_progress(struct dt_control_t *control, dt_progress_t *progress, double value)
Definition progress.c:361
dt_progress_t * dt_control_progress_create(struct dt_control_t *control, gboolean has_progress_bar, const gchar *message)
Definition progress.c:268
void dt_control_progress_attach_job(struct dt_control_t *control, dt_progress_t *progress, struct _dt_job_t *job)
Definition progress.c:339
void dt_control_progress_cancel(struct dt_control_t *control, dt_progress_t *progress)
Definition progress.c:344
gboolean dt_control_progress_has_progress_bar(dt_progress_t *progress)
Definition progress.c:425
void * dt_control_progress_get_gui_data(dt_progress_t *progress)
Definition progress.c:417
static const dt_aligned_pixel_simd_t value
Definition simd.h:144
gchar * message
Definition progress.c:58
dt_progress_cancel_callback_t cancel
Definition progress.c:64
double progress
Definition progress.c:57
gboolean has_progress_bar
Definition progress.c:59