source: wkhtmltox/trunk/fuentes/src/lib/image.h @ 51

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

wip

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