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

Last change on this file since 4126 was 3587, checked in by Sam Hocevar, 11 years ago

Rename caca_get_cursor_x() and caca_get_cursor_y() to caca_wherex() and
caca_wherey(), in order to match the old <conio.h> naming scheme.

File size: 5.6 KB
Line 
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
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
35PHP_MINIT_FUNCTION(caca);
36PHP_MINFO_FUNCTION(caca);
37
38PHP_FUNCTION(caca_create_canvas);
39PHP_FUNCTION(caca_set_canvas_size);
40PHP_FUNCTION(caca_get_canvas_width);
41PHP_FUNCTION(caca_get_canvas_height);
42PHP_FUNCTION(caca_get_canvas_chars);
43PHP_FUNCTION(caca_get_canvas_attrs);
44PHP_FUNCTION(caca_rand);
45PHP_FUNCTION(caca_get_version);
46PHP_FUNCTION(caca_gotoxy);
47PHP_FUNCTION(caca_wherex);
48PHP_FUNCTION(caca_wherey);
49PHP_FUNCTION(caca_put_char);
50PHP_FUNCTION(caca_get_char);
51PHP_FUNCTION(caca_put_str);
52PHP_FUNCTION(caca_clear_canvas);
53PHP_FUNCTION(caca_set_canvas_handle);
54PHP_FUNCTION(caca_get_canvas_handle_x);
55PHP_FUNCTION(caca_get_canvas_handle_y);
56PHP_FUNCTION(caca_blit);
57PHP_FUNCTION(caca_set_canvas_boundaries);
58PHP_FUNCTION(caca_invert);
59PHP_FUNCTION(caca_flip);
60PHP_FUNCTION(caca_flop);
61PHP_FUNCTION(caca_rotate_180);
62PHP_FUNCTION(caca_rotate_left);
63PHP_FUNCTION(caca_rotate_right);
64PHP_FUNCTION(caca_stretch_left);
65PHP_FUNCTION(caca_stretch_right);
66PHP_FUNCTION(caca_get_attr);
67PHP_FUNCTION(caca_set_attr);
68PHP_FUNCTION(caca_put_attr);
69PHP_FUNCTION(caca_set_color_ansi);
70PHP_FUNCTION(caca_set_color_argb);
71PHP_FUNCTION(caca_attr_to_ansi);
72PHP_FUNCTION(caca_attr_to_ansi_fg);
73PHP_FUNCTION(caca_attr_to_ansi_bg);
74PHP_FUNCTION(caca_attr_to_rgb12_fg);
75PHP_FUNCTION(caca_attr_to_rgb12_bg);
76PHP_FUNCTION(caca_attr_to_argb64);
77PHP_FUNCTION(caca_utf8_to_utf32);
78PHP_FUNCTION(caca_utf32_to_utf8);
79PHP_FUNCTION(caca_utf32_to_cp437);
80PHP_FUNCTION(caca_cp437_to_utf32);
81PHP_FUNCTION(caca_utf32_to_ascii);
82PHP_FUNCTION(caca_utf32_is_fullwidth);
83PHP_FUNCTION(caca_draw_line);
84PHP_FUNCTION(caca_draw_polyline);
85PHP_FUNCTION(caca_draw_thin_line);
86PHP_FUNCTION(caca_draw_thin_polyline);
87PHP_FUNCTION(caca_draw_circle);
88PHP_FUNCTION(caca_draw_ellipse);
89PHP_FUNCTION(caca_draw_thin_ellipse);
90PHP_FUNCTION(caca_fill_ellipse);
91PHP_FUNCTION(caca_draw_box);
92PHP_FUNCTION(caca_draw_thin_box);
93PHP_FUNCTION(caca_draw_cp437_box);
94PHP_FUNCTION(caca_fill_box);
95PHP_FUNCTION(caca_draw_triangle);
96PHP_FUNCTION(caca_draw_thin_triangle);
97PHP_FUNCTION(caca_fill_triangle);
98PHP_FUNCTION(caca_get_frame_count);
99PHP_FUNCTION(caca_set_frame);
100PHP_FUNCTION(caca_set_frame_name);
101PHP_FUNCTION(caca_create_frame);
102PHP_FUNCTION(caca_free_frame);
103PHP_FUNCTION(caca_create_dither);
104PHP_FUNCTION(caca_set_dither_palette);
105PHP_FUNCTION(caca_set_dither_brightness);
106PHP_FUNCTION(caca_get_dither_brightness);
107PHP_FUNCTION(caca_set_dither_gamma);
108PHP_FUNCTION(caca_get_dither_gamma);
109PHP_FUNCTION(caca_set_dither_contrast);
110PHP_FUNCTION(caca_get_dither_contrast);
111PHP_FUNCTION(caca_set_dither_antialias);
112PHP_FUNCTION(caca_get_dither_antialias_list);
113PHP_FUNCTION(caca_get_dither_antialias);
114PHP_FUNCTION(caca_set_dither_color);
115PHP_FUNCTION(caca_get_dither_color_list);
116PHP_FUNCTION(caca_get_dither_color);
117PHP_FUNCTION(caca_set_dither_charset);
118PHP_FUNCTION(caca_get_dither_charset_list);
119PHP_FUNCTION(caca_get_dither_charset);
120PHP_FUNCTION(caca_set_dither_algorithm);
121PHP_FUNCTION(caca_get_dither_algorithm_list);
122PHP_FUNCTION(caca_get_dither_algorithm);
123PHP_FUNCTION(caca_dither_bitmap);
124PHP_FUNCTION(caca_load_font);
125PHP_FUNCTION(caca_load_builtin_font);
126PHP_FUNCTION(caca_get_font_list);
127PHP_FUNCTION(caca_get_font_width);
128PHP_FUNCTION(caca_get_font_height);
129PHP_FUNCTION(caca_get_font_blocks);
130PHP_FUNCTION(caca_render_canvas);
131PHP_FUNCTION(caca_canvas_set_figfont);
132PHP_FUNCTION(caca_put_figchar);
133PHP_FUNCTION(caca_flush_figlet);
134PHP_FUNCTION(caca_file_open);
135PHP_FUNCTION(caca_file_close);
136PHP_FUNCTION(caca_file_tell);
137PHP_FUNCTION(caca_file_read);
138PHP_FUNCTION(caca_file_write);
139PHP_FUNCTION(caca_file_gets);
140PHP_FUNCTION(caca_file_eof);
141PHP_FUNCTION(caca_import_string);
142PHP_FUNCTION(caca_import_file);
143PHP_FUNCTION(caca_get_import_list);
144PHP_FUNCTION(caca_export_string);
145PHP_FUNCTION(caca_get_export_list);
146PHP_FUNCTION(caca_create_display);
147PHP_FUNCTION(caca_create_display_with_driver);
148PHP_FUNCTION(caca_get_display_driver_list);
149PHP_FUNCTION(caca_get_display_driver);
150PHP_FUNCTION(caca_set_display_driver);
151PHP_FUNCTION(caca_get_canvas);
152PHP_FUNCTION(caca_refresh_display);
153PHP_FUNCTION(caca_set_display_time);
154PHP_FUNCTION(caca_get_display_time);
155PHP_FUNCTION(caca_get_display_width);
156PHP_FUNCTION(caca_get_display_height);
157PHP_FUNCTION(caca_set_display_title);
158PHP_FUNCTION(caca_set_mouse);
159PHP_FUNCTION(caca_set_cursor);
160PHP_FUNCTION(caca_get_event);
161PHP_FUNCTION(caca_get_mouse_x);
162PHP_FUNCTION(caca_get_mouse_y);
163PHP_FUNCTION(caca_get_event_type);
164PHP_FUNCTION(caca_get_event_key_ch);
165PHP_FUNCTION(caca_get_event_mouse_button);
166PHP_FUNCTION(caca_get_event_mouse_x);
167PHP_FUNCTION(caca_get_event_mouse_y);
168PHP_FUNCTION(caca_get_event_resize_width);
169PHP_FUNCTION(caca_get_event_resize_height);
170
171extern zend_module_entry caca_module_entry;
172#define phpext_caca_ptr &caca_module_entry
173
174#endif
Note: See TracBrowser for help on using the repository browser.