Ethumb: make distcheck fixes
[framework/uifw/ethumb.git] / src / lib / Ethumb_Plugin.h
1 #ifndef _ETHUMB_PLUGIN_H_
2 #define _ETHUMB_PLUGIN_H_
3
4 #include <Ethumb.h>
5 #include <Evas.h>
6 #include <Ecore_Evas.h>
7
8 typedef struct _Ethumb_Plugin Ethumb_Plugin;
9
10 struct _Ethumb_Plugin
11 {
12    const char **extensions;
13    void (*generate_thumb)(Ethumb *);
14 };
15
16 EAPI void ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h);
17 EAPI void ethumb_calculate_aspect(Ethumb *e, int iw, int ih, int *w, int *h);
18 EAPI void ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw, int *fh);
19 EAPI void ethumb_calculate_fill(Ethumb *e, int iw, int ih, int *fx, int *fy, int *fw, int *fh);
20 EAPI Eina_Bool ethumb_plugin_image_resize(Ethumb *e, int w, int h);
21 EAPI Eina_Bool ethumb_image_save(Ethumb *e);
22 EAPI void ethumb_finished_callback_call(Ethumb *e, int result);
23 EAPI Evas * ethumb_evas_get(const Ethumb *e);
24 EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e);
25
26 #endif /* _ETHUMB_PLUGIN_H_ */