summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_filter.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-12-31 16:01:06 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-07 17:33:16 +0900
commita87ef5735d07960d247b05b9a78cac9382a6f051 (patch)
tree6a7e289b6db1dcc1a5e186b8739930bf7a50b60c /src/lib/evas/include/evas_filter.h
parent37eb6b6233a922bd1d9aa8379cbc67a5e349b215 (diff)
Evas filters: Introduce "fill" mode in script API
This would mean: repeat (X,Y) or stretch (X,Y), for buffer operations where it means something (blend, bump, ...)
Diffstat (limited to 'src/lib/evas/include/evas_filter.h')
-rw-r--r--src/lib/evas/include/evas_filter.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index 8a3c02a368..655225feda 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -13,6 +13,7 @@ typedef enum _Evas_Filter_Blur_Type Evas_Filter_Blur_Type;
13typedef enum _Evas_Filter_Channel Evas_Filter_Channel; 13typedef enum _Evas_Filter_Channel Evas_Filter_Channel;
14typedef enum _Evas_Filter_Displacement_Flags Evas_Filter_Displacement_Flags; 14typedef enum _Evas_Filter_Displacement_Flags Evas_Filter_Displacement_Flags;
15typedef enum _Evas_Filter_Bump_Flags Evas_Filter_Bump_Flags; 15typedef enum _Evas_Filter_Bump_Flags Evas_Filter_Bump_Flags;
16typedef enum _Evas_Filter_Fill_Mode Evas_Filter_Fill_Mode;
16 17
17typedef Eina_Bool (* Evas_Filter_Apply_Func) (Evas_Filter_Command *cmd); 18typedef Eina_Bool (* Evas_Filter_Apply_Func) (Evas_Filter_Command *cmd);
18typedef void (* Evas_Filter_Cb) (Evas_Filter_Context *ctx, void *data); 19typedef void (* Evas_Filter_Cb) (Evas_Filter_Context *ctx, void *data);
@@ -74,6 +75,19 @@ enum _Evas_Filter_Bump_Flags
74 EVAS_FILTER_BUMP_COMPENSATE = 0x1 /**< Compensate for darkening (diffuse light) or brightening (specular light) of zero gradient surfaces */ 75 EVAS_FILTER_BUMP_COMPENSATE = 0x1 /**< Compensate for darkening (diffuse light) or brightening (specular light) of zero gradient surfaces */
75}; 76};
76 77
78enum _Evas_Filter_Fill_Mode
79{
80 EVAS_FILTER_FILL_MODE_NONE = 0x0,
81 EVAS_FILTER_FILL_MODE_STRETCH_X = 0x1,
82 EVAS_FILTER_FILL_MODE_STRETCH_Y = 0x2,
83 EVAS_FILTER_FILL_MODE_REPEAT_X = 0x4,
84 EVAS_FILTER_FILL_MODE_REPEAT_Y = 0x8,
85 EVAS_FILTER_FILL_MODE_REPEAT_X_STRETCH_Y = EVAS_FILTER_FILL_MODE_REPEAT_X | EVAS_FILTER_FILL_MODE_STRETCH_Y,
86 EVAS_FILTER_FILL_MODE_REPEAT_Y_STRETCH_X = EVAS_FILTER_FILL_MODE_REPEAT_Y | EVAS_FILTER_FILL_MODE_STRETCH_X,
87 EVAS_FILTER_FILL_MODE_REPEAT_XY = EVAS_FILTER_FILL_MODE_REPEAT_X | EVAS_FILTER_FILL_MODE_REPEAT_Y,
88 EVAS_FILTER_FILL_MODE_STRETCH_XY = EVAS_FILTER_FILL_MODE_STRETCH_X | EVAS_FILTER_FILL_MODE_STRETCH_Y
89};
90
77/* Parser stuff (high level API) */ 91/* Parser stuff (high level API) */
78Evas_Filter_Program *evas_filter_program_new(const char *name); 92Evas_Filter_Program *evas_filter_program_new(const char *name);
79Eina_Bool evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str); 93Eina_Bool evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str);