summaryrefslogtreecommitdiff
path: root/src/lib/ethumb/Ethumb_Plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ethumb/Ethumb_Plugin.h')
-rw-r--r--src/lib/ethumb/Ethumb_Plugin.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/ethumb/Ethumb_Plugin.h b/src/lib/ethumb/Ethumb_Plugin.h
new file mode 100644
index 0000000000..3eb6f020cd
--- /dev/null
+++ b/src/lib/ethumb/Ethumb_Plugin.h
@@ -0,0 +1,27 @@
1#ifndef _ETHUMB_PLUGIN_H_
2#define _ETHUMB_PLUGIN_H_
3
4#include <Evas.h>
5#include <Ecore_Evas.h>
6#include <Ethumb.h>
7
8typedef struct _Ethumb_Plugin Ethumb_Plugin;
9
10struct _Ethumb_Plugin
11{
12 const char **extensions;
13 void *(*thumb_generate)(Ethumb *);
14 void (*thumb_cancel)(Ethumb *, void *);
15};
16
17EAPI void ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h);
18EAPI void ethumb_calculate_aspect(Ethumb *e, int iw, int ih, int *w, int *h);
19EAPI void ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw, int *fh);
20EAPI void ethumb_calculate_fill(Ethumb *e, int iw, int ih, int *fx, int *fy, int *fw, int *fh);
21EAPI Eina_Bool ethumb_plugin_image_resize(Ethumb *e, int w, int h);
22EAPI Eina_Bool ethumb_image_save(Ethumb *e);
23EAPI void ethumb_finished_callback_call(Ethumb *e, int result);
24EAPI Evas * ethumb_evas_get(const Ethumb *e);
25EAPI Ecore_Evas * ethumb_ecore_evas_get(const Ethumb *e);
26
27#endif /* _ETHUMB_PLUGIN_H_ */