![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "lua/styles.h"
#include "common/debug.h"
#include "common/styles.h"
#include "lua/glist.h"
#include "lua/image.h"
#include "lua/types.h"
Functions | |
static GList * | style_item_table_to_id_list (lua_State *L, int index) |
static int | style_gc (lua_State *L) |
static int | style_tostring (lua_State *L) |
static int | style_delete (lua_State *L) |
static int | style_duplicate (lua_State *L) |
static int | style_getnumber (lua_State *L) |
static int | style_length (lua_State *L) |
static int | name_member (lua_State *L) |
static int | description_member (lua_State *L) |
static int | style_item_tostring (lua_State *L) |
static int | style_item_gc (lua_State *L) |
static int | style_table_index (lua_State *L) |
static int | style_table_len (lua_State *L) |
int | dt_lua_style_create_from_image (lua_State *L) |
int | dt_lua_style_apply (lua_State *L) |
int | dt_lua_style_import (lua_State *L) |
int | dt_lua_style_export (lua_State *L) |
int | dt_lua_init_styles (lua_State *L) |
|
static |
References dt_style_t::description, dt_styles_update(), FALSE, and dt_style_t::name.
Referenced by dt_lua_init_styles().
int dt_lua_init_styles | ( | lua_State * | L | ) |
References description_member(), dt_lua_init_singleton(), dt_lua_init_type, dt_lua_push_darktable_lib(), dt_lua_style_apply(), dt_lua_style_create_from_image(), dt_lua_style_export(), dt_lua_style_import(), dt_lua_type_member_common(), dt_lua_type_member_luaautoc(), dt_lua_type_register_const, dt_lua_type_register_const_type(), dt_lua_type_register_number_const, dt_lua_type_register_number_const_type(), dt_lua_type_register_struct, dt_lua_type_setmetafield, name, name_member(), style_delete(), style_duplicate(), style_gc(), style_getnumber(), style_item_gc(), style_item_tostring(), style_length(), style_table_index(), style_table_len(), and style_tostring().
int dt_lua_style_apply | ( | lua_State * | L | ) |
(-2,0) takes an image and a style in any order, apply the style to the image
References darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_TAG_CHANGED, dt_styles_apply_to_image(), FALSE, dt_style_t::name, darktable_t::signals, and UNKNOWN_IMAGE.
Referenced by dt_lua_init_image(), and dt_lua_init_styles().
int dt_lua_style_create_from_image | ( | lua_State * | L | ) |
(0,+1) takes an image, a name, an optional description and creates a style. returns the new style object used by dt_lua_image_t
References description(), dt_style_free(), dt_styles_create_from_image(), dt_styles_get_list(), dt_style_t::name, and TRUE.
Referenced by dt_lua_init_image(), and dt_lua_init_styles().
int dt_lua_style_export | ( | lua_State * | L | ) |
References dt_styles_save_to_file(), and dt_style_t::name.
Referenced by dt_lua_init_styles().
int dt_lua_style_import | ( | lua_State * | L | ) |
References dt_styles_import_from_file().
Referenced by dt_lua_init_styles().
|
static |
References dt_style_t::description, dt_styles_update(), FALSE, and dt_style_t::name.
Referenced by dt_lua_init_styles().
|
static |
References dt_styles_delete_by_name(), and dt_style_t::name.
Referenced by dt_lua_init_styles().
|
static |
References dt_style_t::description, description(), dt_styles_create_from_style(), FALSE, dt_style_t::name, style_item_table_to_id_list(), and TRUE.
Referenced by dt_lua_init_styles().
|
static |
References dt_style_t::description, and dt_style_t::name.
Referenced by dt_lua_init_styles().
|
static |
References dt_style_item_free(), dt_styles_get_item_list(), items, dt_style_t::name, and TRUE.
Referenced by dt_lua_init_styles().
|
static |
References dt_style_item_t::blendop_params, dt_style_item_t::name, dt_style_item_t::operation, and dt_style_item_t::params.
Referenced by dt_lua_init_styles().
|
static |
References dt_style_item_t::num.
Referenced by style_duplicate().
|
static |
References dt_style_item_t::name, and dt_style_item_t::num.
Referenced by dt_lua_init_styles().
|
static |
References dt_style_item_free(), dt_styles_get_item_list(), items, dt_style_t::name, and TRUE.
Referenced by dt_lua_init_styles().
|
static |
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_PREPARE_V2, dt_styles_get_by_name(), and name.
Referenced by dt_lua_init_styles().
|
static |
References darktable, darktable_t::db, dt_database_get(), and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by dt_lua_init_styles().
|
static |
References dt_style_t::name.
Referenced by dt_lua_init_styles().