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

Go to the source code of this file.

Functions

int dt_lua_style_create_from_image (lua_State *L)
 
int dt_lua_style_apply (lua_State *L)
 
int dt_lua_init_styles (lua_State *L)
 

Function Documentation

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