summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_filter.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-12-22 19:41:04 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-01-17 14:35:27 +0900
commitb2a4039bda21989ab9f9316579750f48a83e052a (patch)
tree5ab858644f9868a7deea92fac95496ccf1aa89c2 /src/lib/evas/include/evas_filter.h
parentffbc0645e57d7cad01e5c11044bcb8c7688c6e27 (diff)
evas: Refactor evas filters a bit
This is a preparation step for (experimental) textblock support. Textblock objects won't have a single filter, and the buffer's geometry wouldn't be that of of the object itself. Thus a few internal APIs need to be reworked first.
Diffstat (limited to 'src/lib/evas/include/evas_filter.h')
-rw-r--r--src/lib/evas/include/evas_filter.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index bb7a32d287..60d946fddc 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -4,6 +4,8 @@
4#include "evas_common_private.h" 4#include "evas_common_private.h"
5#include "evas_private.h" 5#include "evas_private.h"
6 6
7#include "efl_canvas_filter_internal.eo.h"
8
7#ifdef EAPI 9#ifdef EAPI
8# undef EAPI 10# undef EAPI
9#endif 11#endif
@@ -35,7 +37,6 @@ typedef struct _Evas_Filter_Command Evas_Filter_Command;
35typedef struct _Evas_Filter_Instruction Evas_Filter_Instruction; 37typedef struct _Evas_Filter_Instruction Evas_Filter_Instruction;
36typedef struct _Evas_Filter_Buffer Evas_Filter_Buffer; 38typedef struct _Evas_Filter_Buffer Evas_Filter_Buffer;
37typedef struct _Evas_Filter_Proxy_Binding Evas_Filter_Proxy_Binding; 39typedef struct _Evas_Filter_Proxy_Binding Evas_Filter_Proxy_Binding;
38typedef struct _Evas_Filter_Program_State Evas_Filter_Program_State;
39typedef enum _Evas_Filter_Mode Evas_Filter_Mode; 40typedef enum _Evas_Filter_Mode Evas_Filter_Mode;
40typedef enum _Evas_Filter_Blur_Type Evas_Filter_Blur_Type; 41typedef enum _Evas_Filter_Blur_Type Evas_Filter_Blur_Type;
41typedef enum _Evas_Filter_Channel Evas_Filter_Channel; 42typedef enum _Evas_Filter_Channel Evas_Filter_Channel;
@@ -124,9 +125,11 @@ enum _Evas_Filter_Transform_Flags
124 EVAS_FILTER_TRANSFORM_VFLIP = 1 125 EVAS_FILTER_TRANSFORM_VFLIP = 1
125}; 126};
126 127
128#define EFL_CANVAS_FILTER_STATE_DEFAULT { {}, { 255, 255, 255, 255 }, { "default", 0.0 }, {}, 0, 0, 1.0, 0.0 }
129
127/* Parser stuff (high level API) */ 130/* Parser stuff (high level API) */
128EAPI Evas_Filter_Program *evas_filter_program_new(const char *name, Eina_Bool input_alpha); 131EAPI Evas_Filter_Program *evas_filter_program_new(const char *name, Eina_Bool input_alpha);
129EAPI Eina_Bool evas_filter_program_state_set(Evas_Filter_Program *pgm, Evas_Object *eo_obj, Evas_Object_Protected_Data *obj, const char *cur_state, double cur_val, const char *next_state, double next_val, double pos); 132EAPI Eina_Bool evas_filter_program_state_set(Evas_Filter_Program *pgm, const Efl_Canvas_Filter_State *state);
130EAPI Eina_Bool evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str); 133EAPI Eina_Bool evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str);
131EAPI void evas_filter_program_del(Evas_Filter_Program *pgm); 134EAPI void evas_filter_program_del(Evas_Filter_Program *pgm);
132Eina_Bool evas_filter_context_program_use(Evas_Filter_Context *ctx, Evas_Filter_Program *pgm); 135Eina_Bool evas_filter_context_program_use(Evas_Filter_Context *ctx, Evas_Filter_Program *pgm);