source: libcaca/trunk/caca-php/php_caca.h @ 3138

Last change on this file since 3138 was 3138, checked in by nico, 12 years ago
  • Add indexed colors image support for dither with gd resources
File size: 5.7 KB
RevLine 
[3089]1/*
2 *  php-caca      Php binding for Libcaca
3 *  Copyright (c) 2008 Vion Nicolas <nico@picapo.net>
4 *
5 *
6 *  This library is free software. It comes without any warranty, to
7 *  the extent permitted by applicable law. You can redistribute it
8 *  and/or modify it under the terms of the Do What The Fuck You Want
9 *  To Public License, Version 2, as published by Sam Hocevar. See
10 *  http://sam.zoy.org/wtfpl/COPYING for more details.
11 */
12
13#ifndef PHP_CACA_H
14#define PHP_CACA_H
15
16#include <caca.h>
17
18#define PHP_CACA_VERSION "0.0"
19#define PHP_CACA_EXTNAME "caca"
20
[3091]21#define PHP_CACA_CANVAS_RES_NAME "caca_canvas"
22#define PHP_CACA_DITHER_RES_NAME "caca_dither"
23#define PHP_CACA_FONT_RES_NAME "caca_font"
24#define PHP_CACA_FILE_RES_NAME "caca_file"
25#define PHP_CACA_DISPLAY_RES_NAME "caca_display"
26#define PHP_CACA_EVENT_RES_NAME "caca_event"
27
28int le_caca_canvas;
29int le_caca_dither;
30int le_caca_font;
31int le_caca_file;
32int le_caca_display;
33int le_caca_event;
34
[3089]35PHP_MINIT_FUNCTION(caca);
36PHP_MINFO_FUNCTION(caca);
37
[3108]38PHP_FUNCTION(caca_create_event);
39
[3091]40PHP_FUNCTION(caca_create_canvas);
[3089]41PHP_FUNCTION(caca_set_canvas_size);
42PHP_FUNCTION(caca_get_canvas_width);
43PHP_FUNCTION(caca_get_canvas_height);
[3091]44PHP_FUNCTION(caca_get_canvas_chars);
45PHP_FUNCTION(caca_get_canvas_attrs);
[3089]46PHP_FUNCTION(caca_rand);
47PHP_FUNCTION(caca_get_version);
48PHP_FUNCTION(caca_gotoxy);
49PHP_FUNCTION(caca_get_cursor_x);
50PHP_FUNCTION(caca_get_cursor_y);
51PHP_FUNCTION(caca_put_char);
[3091]52PHP_FUNCTION(caca_get_char);
[3089]53PHP_FUNCTION(caca_put_str);
54PHP_FUNCTION(caca_clear_canvas);
55PHP_FUNCTION(caca_set_canvas_handle);
56PHP_FUNCTION(caca_get_canvas_handle_x);
57PHP_FUNCTION(caca_get_canvas_handle_y);
58PHP_FUNCTION(caca_blit);
59PHP_FUNCTION(caca_set_canvas_boundaries);
60PHP_FUNCTION(caca_invert);
61PHP_FUNCTION(caca_flip);
62PHP_FUNCTION(caca_flop);
[3110]63PHP_FUNCTION(caca_rotate_180);
[3089]64PHP_FUNCTION(caca_rotate_left);
65PHP_FUNCTION(caca_rotate_right);
66PHP_FUNCTION(caca_stretch_left);
67PHP_FUNCTION(caca_stretch_right);
[3091]68PHP_FUNCTION(caca_get_attr);
[3089]69PHP_FUNCTION(caca_set_attr);
70PHP_FUNCTION(caca_put_attr);
71PHP_FUNCTION(caca_set_color_ansi);
72PHP_FUNCTION(caca_set_color_argb);
[3092]73PHP_FUNCTION(caca_attr_to_ansi);
74PHP_FUNCTION(caca_attr_to_ansi_fg);
75PHP_FUNCTION(caca_attr_to_ansi_bg);
[3110]76PHP_FUNCTION(caca_attr_to_rgb12_fg);
77PHP_FUNCTION(caca_attr_to_rgb12_bg);
78PHP_FUNCTION(caca_attr_to_argb64);
79PHP_FUNCTION(caca_utf8_to_utf32);
80PHP_FUNCTION(caca_utf32_to_utf8);
81PHP_FUNCTION(caca_utf32_to_cp437);
82PHP_FUNCTION(caca_cp437_to_utf32);
83PHP_FUNCTION(caca_utf32_to_ascii);
84PHP_FUNCTION(caca_utf32_is_fullwidth);
[3089]85PHP_FUNCTION(caca_draw_line);
86PHP_FUNCTION(caca_draw_polyline);
87PHP_FUNCTION(caca_draw_thin_line);
88PHP_FUNCTION(caca_draw_thin_polyline);
89PHP_FUNCTION(caca_draw_circle);
90PHP_FUNCTION(caca_draw_ellipse);
91PHP_FUNCTION(caca_draw_thin_ellipse);
92PHP_FUNCTION(caca_fill_ellipse);
93PHP_FUNCTION(caca_draw_box);
94PHP_FUNCTION(caca_draw_thin_box);
[3108]95PHP_FUNCTION(caca_draw_cp437_box);
[3089]96PHP_FUNCTION(caca_fill_box);
97PHP_FUNCTION(caca_draw_triangle);
98PHP_FUNCTION(caca_draw_thin_triangle);
99PHP_FUNCTION(caca_fill_triangle);
100PHP_FUNCTION(caca_get_frame_count);
101PHP_FUNCTION(caca_set_frame);
102PHP_FUNCTION(caca_set_frame_name);
103PHP_FUNCTION(caca_create_frame);
104PHP_FUNCTION(caca_free_frame);
[3120]105PHP_FUNCTION(caca_create_dither);
[3123]106PHP_FUNCTION(caca_create_dither_gd);
[3089]107PHP_FUNCTION(caca_set_dither_palette);
[3138]108PHP_FUNCTION(caca_set_dither_palette_gd);
[3089]109PHP_FUNCTION(caca_set_dither_brightness);
110PHP_FUNCTION(caca_get_dither_brightness);
111PHP_FUNCTION(caca_set_dither_gamma);
112PHP_FUNCTION(caca_get_dither_gamma);
113PHP_FUNCTION(caca_set_dither_contrast);
114PHP_FUNCTION(caca_get_dither_contrast);
115PHP_FUNCTION(caca_set_dither_antialias);
116PHP_FUNCTION(caca_get_dither_antialias_list);
117PHP_FUNCTION(caca_get_dither_antialias);
118PHP_FUNCTION(caca_set_dither_color);
119PHP_FUNCTION(caca_get_dither_color_list);
120PHP_FUNCTION(caca_get_dither_color);
121PHP_FUNCTION(caca_set_dither_charset);
122PHP_FUNCTION(caca_get_dither_charset_list);
123PHP_FUNCTION(caca_get_dither_charset);
124PHP_FUNCTION(caca_set_dither_algorithm);
125PHP_FUNCTION(caca_get_dither_algorithm_list);
126PHP_FUNCTION(caca_get_dither_algorithm);
[3119]127PHP_FUNCTION(caca_dither_bitmap_gd);
[3127]128PHP_FUNCTION(caca_load_font);
[3089]129PHP_FUNCTION(caca_get_font_list);
130PHP_FUNCTION(caca_get_font_width);
131PHP_FUNCTION(caca_get_font_height);
[3129]132PHP_FUNCTION(caca_get_font_blocks);
[3089]133PHP_FUNCTION(caca_render_canvas);
134PHP_FUNCTION(caca_canvas_set_figfont);
135PHP_FUNCTION(caca_put_figchar);
136PHP_FUNCTION(caca_flush_figlet);
[3126]137PHP_FUNCTION(caca_file_open);
[3089]138PHP_FUNCTION(caca_file_close);
[3092]139PHP_FUNCTION(caca_file_tell);
140PHP_FUNCTION(caca_file_read);
141PHP_FUNCTION(caca_file_write);
[3089]142PHP_FUNCTION(caca_file_gets);
143PHP_FUNCTION(caca_file_eof);
[3112]144PHP_FUNCTION(caca_import_string);
[3092]145PHP_FUNCTION(caca_import_file);
[3089]146PHP_FUNCTION(caca_get_import_list);
[3112]147PHP_FUNCTION(caca_export_string);
[3089]148PHP_FUNCTION(caca_get_export_list);
[3092]149PHP_FUNCTION(caca_create_display);
150PHP_FUNCTION(caca_create_display_with_driver);
[3089]151PHP_FUNCTION(caca_get_display_driver_list);
152PHP_FUNCTION(caca_get_display_driver);
153PHP_FUNCTION(caca_set_display_driver);
[3092]154PHP_FUNCTION(caca_get_canvas);
[3089]155PHP_FUNCTION(caca_refresh_display);
156PHP_FUNCTION(caca_set_display_time);
157PHP_FUNCTION(caca_get_display_time);
158PHP_FUNCTION(caca_get_display_width);
159PHP_FUNCTION(caca_get_display_height);
160PHP_FUNCTION(caca_set_display_title);
161PHP_FUNCTION(caca_set_mouse);
162PHP_FUNCTION(caca_set_cursor);
163PHP_FUNCTION(caca_get_event);
164PHP_FUNCTION(caca_get_mouse_x);
165PHP_FUNCTION(caca_get_mouse_y);
166PHP_FUNCTION(caca_get_event_type);
167PHP_FUNCTION(caca_get_event_key_ch);
168PHP_FUNCTION(caca_get_event_mouse_button);
169PHP_FUNCTION(caca_get_event_mouse_x);
170PHP_FUNCTION(caca_get_event_mouse_y);
171PHP_FUNCTION(caca_get_event_resize_width);
172PHP_FUNCTION(caca_get_event_resize_height);
173
174extern zend_module_entry caca_module_entry;
175#define phpext_caca_ptr &caca_module_entry
176
177#endif
Note: See TracBrowser for help on using the repository browser.