Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
variables.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2010-2020 darktable developers.
4
5 darktable 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 darktable 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
19#pragma once
20
21#include <glib.h>
22#include <stdint.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
29{
31 const gchar *filename;
32
34 const gchar *jobcode;
35
37 int32_t imgid;
38
41
44
46 gboolean escape_markup;
47
49 void *img;
50
52
61
64
66char *dt_variables_expand(dt_variables_params_t *params, gchar *source, gboolean iterate);
69
78gboolean dt_get_user_pictures_dir(const gchar *homedir, gchar *picdir, size_t picdir_size);
79
80#ifdef __cplusplus
81}
82#endif
83
84// clang-format off
85// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
86// vim: shiftwidth=2 expandtab tabstop=2 cindent
87// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
88// clang-format on
dt_mipmap_buffer_dsc_flags flags
Definition mipmap_cache.c:4
Definition common/variables.c:40
int max_width
Definition common/variables.c:49
int max_height
Definition common/variables.c:50
char * homedir
Definition common/variables.c:64
GDateTime * datetime
Definition common/variables.c:76
Definition variables.h:29
int sequence
Definition variables.h:40
int32_t imgid
Definition variables.h:37
void * img
Definition variables.h:49
const gchar * filename
Definition variables.h:31
struct dt_variables_data_t * data
Definition variables.h:43
const gchar * jobcode
Definition variables.h:34
gboolean escape_markup
Definition variables.h:46
char * dt_variables_expand(dt_variables_params_t *params, gchar *source, gboolean iterate)
Definition common/variables.c:1067
void dt_variables_params_destroy(dt_variables_params_t *params)
Definition common/variables.c:1088
gboolean dt_get_user_pictures_dir(const gchar *homedir, gchar *picdir, size_t picdir_size)
Gets the path to the current OS pictures directory.
Definition common/variables.c:102
void dt_variables_set_max_width_height(dt_variables_params_t *params, int max_width, int max_height)
Definition common/variables.c:1106
void dt_variables_params_init(dt_variables_params_t **params)
Definition common/variables.c:1077
void dt_variables_set_tags_flags(dt_variables_params_t *params, uint32_t flags)
Definition common/variables.c:1117
void dt_variables_set_datetime(dt_variables_params_t *params, GDateTime *datetime)
Definition common/variables.c:1100
void dt_variables_reset_sequence(dt_variables_params_t *params)
Definition common/variables.c:1112