Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
modules.c File Reference
#include "lua/modules.h"
#include "common/imageio.h"
#include "control/conf.h"
#include "lua/image.h"
#include "lua/types.h"
+ Include dependency graph for modules.c:

Functions

void dt_lua_module_new (lua_State *L, const char *module_type_name)
 
void dt_lua_module_push (lua_State *L, const char *module_type_name)
 
void dt_lua_module_entry_new_singleton (lua_State *L, const char *module_type_name, const char *entry_name, void *entry)
 create a new entry into the module, a singleton is created for you that contains entry
 
void dt_lua_module_entry_new (lua_State *L, int index, const char *module_type_name, const char *entry_name)
 create a new entry into the module, the object to be the entry is taken from the index)
 
void dt_lua_module_entry_push (lua_State *L, const char *module_type_name, const char *entry_name)
 get the singleton reprensenting an entry
 
luaA_Type dt_lua_module_entry_get_type (lua_State *L, const char *module_type_name, const char *entry_name)
 get the type of an entry
 
void dt_lua_register_module_presets_type (lua_State *L, const char *module_type_name, const char *entry_name, luaA_Type preset_type)
 
luaA_Type dt_lua_module_get_preset_type (lua_State *L, const char *module_type_name, const char *entry_name)
 
void dt_lua_register_current_preset (lua_State *L, const char *module_type_name, const char *entry_name, lua_CFunction pusher, lua_CFunction getter)
 
int dt_lua_init_early_modules (lua_State *L)
 

Function Documentation

◆ dt_lua_init_early_modules()

int dt_lua_init_early_modules ( lua_State L)

◆ dt_lua_module_entry_get_type()

luaA_Type dt_lua_module_entry_get_type ( lua_State L,
const char *  module_type_name,
const char *  entry_name 
)

◆ dt_lua_module_entry_new()

void dt_lua_module_entry_new ( lua_State L,
int  index,
const char *  module_type_name,
const char *  entry_name 
)

create a new entry into the module, the object to be the entry is taken from the index)

References dt_lua_module_push(), dt_lua_type_member_common(), and dt_lua_type_register_const_type().

Referenced by dt_lua_init_widget_type_type(), dt_lua_module_entry_new_singleton(), dt_lua_register_format_type(), and dt_lua_register_storage_type().

◆ dt_lua_module_entry_new_singleton()

void dt_lua_module_entry_new_singleton ( lua_State L,
const char *  module_type_name,
const char *  entry_name,
void entry 
)

create a new entry into the module, a singleton is created for you that contains entry

References dt_lua_init_singleton(), and dt_lua_module_entry_new().

Referenced by dt_lua_lib_register(), and dt_lua_register_view().

◆ dt_lua_module_entry_push()

void dt_lua_module_entry_push ( lua_State L,
const char *  module_type_name,
const char *  entry_name 
)

◆ dt_lua_module_get_preset_type()

luaA_Type dt_lua_module_get_preset_type ( lua_State L,
const char *  module_type_name,
const char *  entry_name 
)

◆ dt_lua_module_new()

void dt_lua_module_new ( lua_State L,
const char *  module_type_name 
)

◆ dt_lua_module_push()

void dt_lua_module_push ( lua_State L,
const char *  module_type_name 
)

◆ dt_lua_register_current_preset()

void dt_lua_register_current_preset ( lua_State L,
const char *  module_type_name,
const char *  entry_name,
lua_CFunction  pusher,
lua_CFunction  getter 
)

◆ dt_lua_register_module_presets_type()

void dt_lua_register_module_presets_type ( lua_State L,
const char *  module_type_name,
const char *  entry_name,
luaA_Type  preset_type 
)