source: wkhtmltox/trunk/fuentes/include/wkhtmltox/image.h @ 51

Last change on this file since 51 was 51, checked in by mabarracus, 4 years ago

wip

File size: 3.3 KB
Line 
1/*
2 * Copyright 2010 wkhtmltopdf authors
3 *
4 * This file is part of wkhtmltopdf.
5 *
6 * wkhtmltopdf is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * wkhtmltopdf is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with wkhtmltopdf.  If not, see <http: *www.gnu.org/licenses/>.
18 */
19
20#ifndef __IMAGE_H__
21#define __IMAGE_H__
22#include <wkhtmltox/dllbegin.inc>
23
24struct wkhtmltoimage_global_settings;
25typedef struct wkhtmltoimage_global_settings wkhtmltoimage_global_settings;
26
27struct wkhtmltoimage_converter;
28typedef struct wkhtmltoimage_converter wkhtmltoimage_converter;
29
30typedef void (*wkhtmltoimage_str_callback)(wkhtmltoimage_converter * converter, const char * str);
31typedef void (*wkhtmltoimage_int_callback)(wkhtmltoimage_converter * converter, const int val);
32typedef void (*wkhtmltoimage_void_callback)(wkhtmltoimage_converter * converter);
33
34CAPI(int) wkhtmltoimage_init(int use_graphics);
35CAPI(int) wkhtmltoimage_deinit();
36CAPI(int) wkhtmltoimage_extended_qt();
37CAPI(const char *)wkhtmltoimage_version();
38
39CAPI(wkhtmltoimage_global_settings *) wkhtmltoimage_create_global_settings();
40
41CAPI(int) wkhtmltoimage_set_global_setting(wkhtmltoimage_global_settings * settings, const char * name, const char * value);
42CAPI(int) wkhtmltoimage_get_global_setting(wkhtmltoimage_global_settings * settings, const char * name, char * value, int vs);
43
44CAPI(wkhtmltoimage_converter *) wkhtmltoimage_create_converter(wkhtmltoimage_global_settings * settings, const char * data);
45CAPI(void) wkhtmltoimage_destroy_converter(wkhtmltoimage_converter * converter);
46
47CAPI(void) wkhtmltoimage_set_warning_callback(wkhtmltoimage_converter * converter, wkhtmltoimage_str_callback cb);
48CAPI(void) wkhtmltoimage_set_error_callback(wkhtmltoimage_converter * converter, wkhtmltoimage_str_callback cb);
49CAPI(void) wkhtmltoimage_set_phase_changed_callback(wkhtmltoimage_converter * converter, wkhtmltoimage_void_callback cb);
50CAPI(void) wkhtmltoimage_set_progress_changed_callback(wkhtmltoimage_converter * converter, wkhtmltoimage_int_callback cb);
51CAPI(void) wkhtmltoimage_set_finished_callback(wkhtmltoimage_converter * converter, wkhtmltoimage_int_callback cb);
52CAPI(int) wkhtmltoimage_convert(wkhtmltoimage_converter * converter);
53/* CAPI(void) wkhtmltoimage_begin_conversion(wkhtmltoimage_converter * converter); */
54/* CAPI(void) wkhtmltoimage_cancel(wkhtmltoimage_converter * converter); */
55
56CAPI(int) wkhtmltoimage_current_phase(wkhtmltoimage_converter * converter);
57CAPI(int) wkhtmltoimage_phase_count(wkhtmltoimage_converter * converter);
58CAPI(const char *) wkhtmltoimage_phase_description(wkhtmltoimage_converter * converter, int phase);
59CAPI(const char *) wkhtmltoimage_progress_string(wkhtmltoimage_converter * converter);
60CAPI(int) wkhtmltoimage_http_error_code(wkhtmltoimage_converter * converter);
61CAPI(long) wkhtmltoimage_get_output(wkhtmltoimage_converter * converter, const unsigned char **);
62
63#include <wkhtmltox/dllend.inc>
64#endif /*__IMAGE_H__*/
Note: See TracBrowser for help on using the repository browser.