Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
modules.h File Reference
#include <common/imageio_module.h>
#include <lua/lua.h>
+ Include dependency graph for modules.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define dt_lua_register_module_member(L, storage, struct_type, member, member_type)
 
#define dt_lua_register_module_member_indirect(L, storage, struct_type, struct_member, child_type, child_member, member_type)
 
#define dt_lua_register_module_presets(L, module, entry, type)    dt_lua_register_module_presets_type(L, module, entry, luaA_type_id(type))
 preset handling
 

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 (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_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_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)
 

Macro Definition Documentation

◆ dt_lua_register_module_member

#define dt_lua_register_module_member (   L,
  storage,
  struct_type,
  member,
  member_type 
)
Value:
luaA_struct_member_type(L, storage->parameter_lua_type, #member, luaA_type(L, member_type), \
offsetof(struct_type, member))

◆ dt_lua_register_module_member_indirect

#define dt_lua_register_module_member_indirect (   L,
  storage,
  struct_type,
  struct_member,
  child_type,
  child_member,
  member_type 
)
Value:
luaA_struct_member_type(L, storage->parameter_lua_type, #child_member, luaA_type(L, member_type), \
offsetof(struct_type, struct_member)+offsetof( child_type, child_member))

◆ dt_lua_register_module_presets

#define dt_lua_register_module_presets (   L,
  module,
  entry,
  type 
)     dt_lua_register_module_presets_type(L, module, entry, luaA_type_id(type))

preset handling

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 
)