Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
events.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2010-2011 Henrik Andersson.
4 Copyright (C) 2010 johannes hanika.
5 Copyright (C) 2010 Pascal de Bruijn.
6 Copyright (C) 2012 Richard Wonka.
7 Copyright (C) 2013-2016 Jérémy Rosen.
8 Copyright (C) 2014, 2016 Tobias Ellinghaus.
9 Copyright (C) 2016 Roman Lebedev.
10 Copyright (C) 2018 luzpaz.
11 Copyright (C) 2020-2021 Pascal Obry.
12 Copyright (C) 2021 wpferguson.
13 Copyright (C) 2022 Martin Bařinka.
14
15 darktable is free software: you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation, either version 3 of the License, or
18 (at your option) any later version.
19
20 darktable is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with darktable. If not, see <http://www.gnu.org/licenses/>.
27*/
28
29#pragma once
30
31#include <lauxlib.h>
32#include <lua.h>
33#include <lualib.h>
34
35
65void dt_lua_event_add(lua_State *L, const char *evt_name);
66
67
74void dt_lua_event_trigger(lua_State *L, const char *event, int nargs);
75
82
84// HELPERS //
86// these pairs of functions can usually be used "as is" for registering events
87
88
104
105
120
121
122
128
129// clang-format off
130// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
131// vim: shiftwidth=2 expandtab tabstop=2 cindent
132// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
133// clang-format on
134
const float L
Definition colorspaces_inline_conversions.h:724
int dt_lua_event_multiinstance_register(lua_State *L)
Definition events.c:314
int dt_lua_event_keyed_trigger(lua_State *L)
Definition events.c:271
int dt_lua_event_keyed_destroy(lua_State *L)
Definition events.c:246
int dt_lua_event_keyed_register(lua_State *L)
Definition events.c:216
int dt_lua_init_events(lua_State *L)
Definition events.c:579
int dt_lua_event_trigger_wrapper(lua_State *L)
Definition events.c:88
int dt_lua_event_multiinstance_trigger(lua_State *L)
Definition events.c:412
void dt_lua_event_add(lua_State *L, const char *evt_name)
Definition events.c:114
void dt_lua_event_trigger(lua_State *L, const char *event, int nargs)
Definition events.c:42
int dt_lua_event_multiinstance_destroy(lua_State *L)
Definition events.c:345
int dt_lua_init_early_events(lua_State *L)
Definition events.c:559
int lua_State
Definition lua.h:95