diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-06-04 19:42:38 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2015-06-25 14:36:08 +0900 |
commit | f3e16bc4854268cecc19a38671c6f68071b7955b (patch) | |
tree | 5ee235f1985609026726c92a7b7c61ff5f87c525 /src/lib/evas/file/evas_module.c | |
parent | 93797e3b0d30b02004da33f5fa350a4d64568e9b (diff) |
Evas filters: Implement Lua classes for colors & buffer
Reuse previous code for buffer. Keeps API stability.
The new class "color" is here for a more convenient color
representation. This way, colors can be represented in more
natural ways like: {r,g,b[,a]}, 0xaarrggbb, "red", "#rrggbb"
Class color is implemented in pure Lua, and adds a .lua file
to Evas' share folder.
Diffstat (limited to '')
-rw-r--r-- | src/lib/evas/file/evas_module.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/evas/file/evas_module.c b/src/lib/evas/file/evas_module.c index ead26123b1..bafc6e7261 100644 --- a/src/lib/evas/file/evas_module.c +++ b/src/lib/evas/file/evas_module.c | |||
@@ -680,6 +680,16 @@ _evas_module_libdir_get(void) | |||
680 | return eina_prefix_lib_get(pfx); | 680 | return eina_prefix_lib_get(pfx); |
681 | } | 681 | } |
682 | 682 | ||
683 | const char * | ||
684 | _evas_module_datadir_get(void) | ||
685 | { | ||
686 | if (!pfx) pfx = eina_prefix_new | ||
687 | (NULL, _evas_module_libdir_get, "EVAS", "evas", "checkme", | ||
688 | PACKAGE_BIN_DIR, PACKAGE_LIB_DIR, PACKAGE_DATA_DIR, PACKAGE_DATA_DIR); | ||
689 | if (!pfx) return NULL; | ||
690 | return eina_prefix_data_get(pfx); | ||
691 | } | ||
692 | |||
683 | EAPI const char * | 693 | EAPI const char * |
684 | evas_cserve_path_get(void) | 694 | evas_cserve_path_get(void) |
685 | { | 695 | { |