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

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)
 

Function Documentation

◆ description_member()

static int description_member ( lua_State L)
static

◆ dt_lua_init_styles()

◆ dt_lua_style_apply()

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

◆ dt_lua_style_create_from_image()

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

◆ dt_lua_style_export()

int dt_lua_style_export ( lua_State L)

◆ dt_lua_style_import()

int dt_lua_style_import ( lua_State L)

◆ name_member()

static int name_member ( lua_State L)
static

◆ style_delete()

static int style_delete ( lua_State L)
static

◆ style_duplicate()

◆ style_gc()

static int style_gc ( lua_State L)
static

◆ style_getnumber()

static int style_getnumber ( lua_State L)
static

◆ style_item_gc()

static int style_item_gc ( lua_State L)
static
Todo:
: Can't we use dt_style_item_free() instead? Or may the pointer itself not be freed?

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

◆ style_item_table_to_id_list()

static GList * style_item_table_to_id_list ( lua_State L,
int  index 
)
static

References dt_style_item_t::num.

Referenced by style_duplicate().

◆ style_item_tostring()

static int style_item_tostring ( lua_State L)
static

◆ style_length()

static int style_length ( lua_State L)
static

◆ style_table_index()

static int style_table_index ( lua_State L)
static

◆ style_table_len()

static int style_table_len ( lua_State L)
static

◆ style_tostring()

static int style_tostring ( lua_State L)
static

References dt_style_t::name.

Referenced by dt_lua_init_styles().