25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

php_caca.h 5.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. #ifndef PHP_CACA_H
  13. #define PHP_CACA_H
  14. #include <caca.h>
  15. #define PHP_CACA_VERSION "0.0"
  16. #define PHP_CACA_EXTNAME "caca"
  17. #define PHP_CACA_CANVAS_RES_NAME "caca_canvas"
  18. #define PHP_CACA_DITHER_RES_NAME "caca_dither"
  19. #define PHP_CACA_FONT_RES_NAME "caca_font"
  20. #define PHP_CACA_FILE_RES_NAME "caca_file"
  21. #define PHP_CACA_DISPLAY_RES_NAME "caca_display"
  22. #define PHP_CACA_EVENT_RES_NAME "caca_event"
  23. int le_caca_canvas;
  24. int le_caca_dither;
  25. int le_caca_font;
  26. int le_caca_file;
  27. int le_caca_display;
  28. int le_caca_event;
  29. PHP_MINIT_FUNCTION(caca);
  30. PHP_MINFO_FUNCTION(caca);
  31. PHP_FUNCTION(caca_create_canvas);
  32. PHP_FUNCTION(caca_set_canvas_size);
  33. PHP_FUNCTION(caca_get_canvas_width);
  34. PHP_FUNCTION(caca_get_canvas_height);
  35. PHP_FUNCTION(caca_get_canvas_chars);
  36. PHP_FUNCTION(caca_get_canvas_attrs);
  37. PHP_FUNCTION(caca_rand);
  38. PHP_FUNCTION(caca_get_version);
  39. PHP_FUNCTION(caca_gotoxy);
  40. PHP_FUNCTION(caca_get_cursor_x);
  41. PHP_FUNCTION(caca_get_cursor_y);
  42. PHP_FUNCTION(caca_put_char);
  43. PHP_FUNCTION(caca_get_char);
  44. PHP_FUNCTION(caca_put_str);
  45. PHP_FUNCTION(caca_clear_canvas);
  46. PHP_FUNCTION(caca_set_canvas_handle);
  47. PHP_FUNCTION(caca_get_canvas_handle_x);
  48. PHP_FUNCTION(caca_get_canvas_handle_y);
  49. PHP_FUNCTION(caca_blit);
  50. PHP_FUNCTION(caca_set_canvas_boundaries);
  51. PHP_FUNCTION(caca_invert);
  52. PHP_FUNCTION(caca_flip);
  53. PHP_FUNCTION(caca_flop);
  54. PHP_FUNCTION(caca_rotate_180);
  55. PHP_FUNCTION(caca_rotate_left);
  56. PHP_FUNCTION(caca_rotate_right);
  57. PHP_FUNCTION(caca_stretch_left);
  58. PHP_FUNCTION(caca_stretch_right);
  59. PHP_FUNCTION(caca_get_attr);
  60. PHP_FUNCTION(caca_set_attr);
  61. PHP_FUNCTION(caca_put_attr);
  62. PHP_FUNCTION(caca_set_color_ansi);
  63. PHP_FUNCTION(caca_set_color_argb);
  64. PHP_FUNCTION(caca_attr_to_ansi);
  65. PHP_FUNCTION(caca_attr_to_ansi_fg);
  66. PHP_FUNCTION(caca_attr_to_ansi_bg);
  67. PHP_FUNCTION(caca_attr_to_rgb12_fg);
  68. PHP_FUNCTION(caca_attr_to_rgb12_bg);
  69. PHP_FUNCTION(caca_attr_to_argb64);
  70. PHP_FUNCTION(caca_utf8_to_utf32);
  71. PHP_FUNCTION(caca_utf32_to_utf8);
  72. PHP_FUNCTION(caca_utf32_to_cp437);
  73. PHP_FUNCTION(caca_cp437_to_utf32);
  74. PHP_FUNCTION(caca_utf32_to_ascii);
  75. PHP_FUNCTION(caca_utf32_is_fullwidth);
  76. PHP_FUNCTION(caca_draw_line);
  77. PHP_FUNCTION(caca_draw_polyline);
  78. PHP_FUNCTION(caca_draw_thin_line);
  79. PHP_FUNCTION(caca_draw_thin_polyline);
  80. PHP_FUNCTION(caca_draw_circle);
  81. PHP_FUNCTION(caca_draw_ellipse);
  82. PHP_FUNCTION(caca_draw_thin_ellipse);
  83. PHP_FUNCTION(caca_fill_ellipse);
  84. PHP_FUNCTION(caca_draw_box);
  85. PHP_FUNCTION(caca_draw_thin_box);
  86. PHP_FUNCTION(caca_draw_cp437_box);
  87. PHP_FUNCTION(caca_fill_box);
  88. PHP_FUNCTION(caca_draw_triangle);
  89. PHP_FUNCTION(caca_draw_thin_triangle);
  90. PHP_FUNCTION(caca_fill_triangle);
  91. PHP_FUNCTION(caca_get_frame_count);
  92. PHP_FUNCTION(caca_set_frame);
  93. PHP_FUNCTION(caca_set_frame_name);
  94. PHP_FUNCTION(caca_create_frame);
  95. PHP_FUNCTION(caca_free_frame);
  96. PHP_FUNCTION(caca_create_dither);
  97. PHP_FUNCTION(caca_set_dither_palette);
  98. PHP_FUNCTION(caca_set_dither_brightness);
  99. PHP_FUNCTION(caca_get_dither_brightness);
  100. PHP_FUNCTION(caca_set_dither_gamma);
  101. PHP_FUNCTION(caca_get_dither_gamma);
  102. PHP_FUNCTION(caca_set_dither_contrast);
  103. PHP_FUNCTION(caca_get_dither_contrast);
  104. PHP_FUNCTION(caca_set_dither_antialias);
  105. PHP_FUNCTION(caca_get_dither_antialias_list);
  106. PHP_FUNCTION(caca_get_dither_antialias);
  107. PHP_FUNCTION(caca_set_dither_color);
  108. PHP_FUNCTION(caca_get_dither_color_list);
  109. PHP_FUNCTION(caca_get_dither_color);
  110. PHP_FUNCTION(caca_set_dither_charset);
  111. PHP_FUNCTION(caca_get_dither_charset_list);
  112. PHP_FUNCTION(caca_get_dither_charset);
  113. PHP_FUNCTION(caca_set_dither_algorithm);
  114. PHP_FUNCTION(caca_get_dither_algorithm_list);
  115. PHP_FUNCTION(caca_get_dither_algorithm);
  116. PHP_FUNCTION(caca_dither_bitmap);
  117. PHP_FUNCTION(caca_load_font);
  118. PHP_FUNCTION(caca_load_builtin_font);
  119. PHP_FUNCTION(caca_get_font_list);
  120. PHP_FUNCTION(caca_get_font_width);
  121. PHP_FUNCTION(caca_get_font_height);
  122. PHP_FUNCTION(caca_get_font_blocks);
  123. PHP_FUNCTION(caca_render_canvas);
  124. PHP_FUNCTION(caca_canvas_set_figfont);
  125. PHP_FUNCTION(caca_put_figchar);
  126. PHP_FUNCTION(caca_flush_figlet);
  127. PHP_FUNCTION(caca_file_open);
  128. PHP_FUNCTION(caca_file_close);
  129. PHP_FUNCTION(caca_file_tell);
  130. PHP_FUNCTION(caca_file_read);
  131. PHP_FUNCTION(caca_file_write);
  132. PHP_FUNCTION(caca_file_gets);
  133. PHP_FUNCTION(caca_file_eof);
  134. PHP_FUNCTION(caca_import_string);
  135. PHP_FUNCTION(caca_import_file);
  136. PHP_FUNCTION(caca_get_import_list);
  137. PHP_FUNCTION(caca_export_string);
  138. PHP_FUNCTION(caca_get_export_list);
  139. PHP_FUNCTION(caca_create_display);
  140. PHP_FUNCTION(caca_create_display_with_driver);
  141. PHP_FUNCTION(caca_get_display_driver_list);
  142. PHP_FUNCTION(caca_get_display_driver);
  143. PHP_FUNCTION(caca_set_display_driver);
  144. PHP_FUNCTION(caca_get_canvas);
  145. PHP_FUNCTION(caca_refresh_display);
  146. PHP_FUNCTION(caca_set_display_time);
  147. PHP_FUNCTION(caca_get_display_time);
  148. PHP_FUNCTION(caca_get_display_width);
  149. PHP_FUNCTION(caca_get_display_height);
  150. PHP_FUNCTION(caca_set_display_title);
  151. PHP_FUNCTION(caca_set_mouse);
  152. PHP_FUNCTION(caca_set_cursor);
  153. PHP_FUNCTION(caca_get_event);
  154. PHP_FUNCTION(caca_get_mouse_x);
  155. PHP_FUNCTION(caca_get_mouse_y);
  156. PHP_FUNCTION(caca_get_event_type);
  157. PHP_FUNCTION(caca_get_event_key_ch);
  158. PHP_FUNCTION(caca_get_event_mouse_button);
  159. PHP_FUNCTION(caca_get_event_mouse_x);
  160. PHP_FUNCTION(caca_get_event_mouse_y);
  161. PHP_FUNCTION(caca_get_event_resize_width);
  162. PHP_FUNCTION(caca_get_event_resize_height);
  163. extern zend_module_entry caca_module_entry;
  164. #define phpext_caca_ptr &caca_module_entry
  165. #endif