Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

php_caca.h 5.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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_event);
  32. PHP_FUNCTION(caca_create_canvas);
  33. PHP_FUNCTION(caca_manage_canvas);
  34. PHP_FUNCTION(caca_unmanage_canvas);
  35. PHP_FUNCTION(caca_set_canvas_size);
  36. PHP_FUNCTION(caca_get_canvas_width);
  37. PHP_FUNCTION(caca_get_canvas_height);
  38. PHP_FUNCTION(caca_get_canvas_chars);
  39. PHP_FUNCTION(caca_get_canvas_attrs);
  40. PHP_FUNCTION(caca_rand);
  41. PHP_FUNCTION(caca_get_version);
  42. PHP_FUNCTION(caca_gotoxy);
  43. PHP_FUNCTION(caca_get_cursor_x);
  44. PHP_FUNCTION(caca_get_cursor_y);
  45. PHP_FUNCTION(caca_put_char);
  46. PHP_FUNCTION(caca_get_char);
  47. PHP_FUNCTION(caca_put_str);
  48. PHP_FUNCTION(caca_clear_canvas);
  49. PHP_FUNCTION(caca_set_canvas_handle);
  50. PHP_FUNCTION(caca_get_canvas_handle_x);
  51. PHP_FUNCTION(caca_get_canvas_handle_y);
  52. PHP_FUNCTION(caca_blit);
  53. PHP_FUNCTION(caca_set_canvas_boundaries);
  54. PHP_FUNCTION(caca_invert);
  55. PHP_FUNCTION(caca_flip);
  56. PHP_FUNCTION(caca_flop);
  57. PHP_FUNCTION(caca_rotate_left);
  58. PHP_FUNCTION(caca_rotate_right);
  59. PHP_FUNCTION(caca_stretch_left);
  60. PHP_FUNCTION(caca_stretch_right);
  61. PHP_FUNCTION(caca_get_attr);
  62. PHP_FUNCTION(caca_set_attr);
  63. PHP_FUNCTION(caca_put_attr);
  64. PHP_FUNCTION(caca_set_color_ansi);
  65. PHP_FUNCTION(caca_set_color_argb);
  66. PHP_FUNCTION(caca_attr_to_ansi);
  67. PHP_FUNCTION(caca_attr_to_ansi_fg);
  68. PHP_FUNCTION(caca_attr_to_ansi_bg);
  69. PHP_FUNCTION(caca_draw_line);
  70. PHP_FUNCTION(caca_draw_polyline);
  71. PHP_FUNCTION(caca_draw_thin_line);
  72. PHP_FUNCTION(caca_draw_thin_polyline);
  73. PHP_FUNCTION(caca_draw_circle);
  74. PHP_FUNCTION(caca_draw_ellipse);
  75. PHP_FUNCTION(caca_draw_thin_ellipse);
  76. PHP_FUNCTION(caca_fill_ellipse);
  77. PHP_FUNCTION(caca_draw_box);
  78. PHP_FUNCTION(caca_draw_thin_box);
  79. PHP_FUNCTION(caca_draw_cp437_box);
  80. PHP_FUNCTION(caca_fill_box);
  81. PHP_FUNCTION(caca_draw_triangle);
  82. PHP_FUNCTION(caca_draw_thin_triangle);
  83. PHP_FUNCTION(caca_fill_triangle);
  84. PHP_FUNCTION(caca_get_frame_count);
  85. PHP_FUNCTION(caca_set_frame);
  86. PHP_FUNCTION(caca_set_frame_name);
  87. PHP_FUNCTION(caca_create_frame);
  88. PHP_FUNCTION(caca_free_frame);
  89. PHP_FUNCTION(caca_set_dither_palette);
  90. PHP_FUNCTION(caca_set_dither_brightness);
  91. PHP_FUNCTION(caca_get_dither_brightness);
  92. PHP_FUNCTION(caca_set_dither_gamma);
  93. PHP_FUNCTION(caca_get_dither_gamma);
  94. PHP_FUNCTION(caca_set_dither_contrast);
  95. PHP_FUNCTION(caca_get_dither_contrast);
  96. PHP_FUNCTION(caca_set_dither_antialias);
  97. PHP_FUNCTION(caca_get_dither_antialias_list);
  98. PHP_FUNCTION(caca_get_dither_antialias);
  99. PHP_FUNCTION(caca_set_dither_color);
  100. PHP_FUNCTION(caca_get_dither_color_list);
  101. PHP_FUNCTION(caca_get_dither_color);
  102. PHP_FUNCTION(caca_set_dither_charset);
  103. PHP_FUNCTION(caca_get_dither_charset_list);
  104. PHP_FUNCTION(caca_get_dither_charset);
  105. PHP_FUNCTION(caca_set_dither_algorithm);
  106. PHP_FUNCTION(caca_get_dither_algorithm_list);
  107. PHP_FUNCTION(caca_get_dither_algorithm);
  108. PHP_FUNCTION(caca_dither_bitmap);
  109. PHP_FUNCTION(caca_get_font_list);
  110. PHP_FUNCTION(caca_get_font_width);
  111. PHP_FUNCTION(caca_get_font_height);
  112. PHP_FUNCTION(caca_render_canvas);
  113. PHP_FUNCTION(caca_canvas_set_figfont);
  114. PHP_FUNCTION(caca_put_figchar);
  115. PHP_FUNCTION(caca_flush_figlet);
  116. PHP_FUNCTION(caca_file_close);
  117. PHP_FUNCTION(caca_file_tell);
  118. PHP_FUNCTION(caca_file_read);
  119. PHP_FUNCTION(caca_file_write);
  120. PHP_FUNCTION(caca_file_gets);
  121. PHP_FUNCTION(caca_file_eof);
  122. PHP_FUNCTION(caca_import_memory);
  123. PHP_FUNCTION(caca_import_file);
  124. PHP_FUNCTION(caca_get_import_list);
  125. PHP_FUNCTION(caca_get_export_list);
  126. PHP_FUNCTION(caca_create_display);
  127. PHP_FUNCTION(caca_create_display_with_driver);
  128. PHP_FUNCTION(caca_get_display_driver_list);
  129. PHP_FUNCTION(caca_get_display_driver);
  130. PHP_FUNCTION(caca_set_display_driver);
  131. PHP_FUNCTION(caca_get_canvas);
  132. PHP_FUNCTION(caca_refresh_display);
  133. PHP_FUNCTION(caca_set_display_time);
  134. PHP_FUNCTION(caca_get_display_time);
  135. PHP_FUNCTION(caca_get_display_width);
  136. PHP_FUNCTION(caca_get_display_height);
  137. PHP_FUNCTION(caca_set_display_title);
  138. PHP_FUNCTION(caca_set_mouse);
  139. PHP_FUNCTION(caca_set_cursor);
  140. PHP_FUNCTION(caca_get_event);
  141. PHP_FUNCTION(caca_get_mouse_x);
  142. PHP_FUNCTION(caca_get_mouse_y);
  143. PHP_FUNCTION(caca_get_event_type);
  144. PHP_FUNCTION(caca_get_event_key_ch);
  145. PHP_FUNCTION(caca_get_event_mouse_button);
  146. PHP_FUNCTION(caca_get_event_mouse_x);
  147. PHP_FUNCTION(caca_get_event_mouse_y);
  148. PHP_FUNCTION(caca_get_event_resize_width);
  149. PHP_FUNCTION(caca_get_event_resize_height);
  150. extern zend_module_entry caca_module_entry;
  151. #define phpext_caca_ptr &caca_module_entry
  152. #endif