source: libcaca/trunk/python/pypycaca.h @ 769

Last change on this file since 769 was 769, checked in by Sam Hocevar, 14 years ago
  • Removed \file directives from all files except caca.h and cucul.h, to remove redundencies in the Doxygen documentation.
  • Property svn:keywords set to Id
File size: 4.9 KB
RevLine 
[518]1/*
2 *  PypyCaca       libcaca Python bindings
3 *  Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
4 *                All Rights Reserved
5 *
[769]6 *  $Id: pypycaca.h 769 2006-04-14 07:30:53Z sam $
7 *
[518]8 *  This library is free software; you can redistribute it and/or
[522]9 *  modify it under the terms of the Do What The Fuck You Want To
10 *  Public License, Version 2, as published by Sam Hocevar. See
11 *  http://sam.zoy.org/wtfpl/COPYING for more details.
[518]12 */
13
14#include <Python.h>
15#include <caca.h>
16#define SET_INTCONSTANT(dict, value) \
17     PyDict_SetItemString(dict, #value, PyInt_FromLong((long) value))
18
19
20PyMODINIT_FUNC initcaca(void);
21
22/* Basic functions */
23
24static PyObject *
25pycaca_init(PyObject *self, PyObject *args);
26static PyObject *
27pycaca_set_delay(PyObject *self, PyObject *args);
28static PyObject *
29pycaca_get_rendertime(PyObject *self, PyObject *args);
30static PyObject *
31pycaca_get_width(PyObject *self, PyObject *args);
32static PyObject *
33pycaca_get_height(PyObject *self, PyObject *args);
34static PyObject *
35pycaca_set_size(PyObject *self, PyObject *args);
36static PyObject *
37pycaca_set_width(PyObject *self, PyObject *args);
38static PyObject *
39pycaca_set_height(PyObject *self, PyObject *args);
40static PyObject *
41pycaca_set_window_title(PyObject *self, PyObject *args);
42static PyObject *
43pycaca_get_window_width(PyObject *self, PyObject *args);
44static PyObject *
45pycaca_get_window_height(PyObject *self, PyObject *args);
46static PyObject *
47pycaca_refresh(PyObject *self, PyObject *args);
48static PyObject *
49pycaca_end(PyObject *self, PyObject *args);
50static PyObject *
51pycaca_get_feature(PyObject *self, PyObject *args);
52static PyObject *
53pycaca_set_feature(PyObject *self, PyObject *args);
54static PyObject *
55pycaca_get_feature_name(PyObject *self, PyObject *args);
56
57/* Event handling */
58static PyObject *
59pycaca_get_event(PyObject *self, PyObject *args);
60static PyObject *
61pycaca_wait_event(PyObject *self, PyObject *args);
62static PyObject *
63pycaca_get_mouse_x(PyObject *self, PyObject *args);
64static PyObject *
65pycaca_get_mouse_y(PyObject *self, PyObject *args);
66
67
68/* Primitives drawing */
69static PyObject *
70pycaca_draw_line(PyObject *self, PyObject *args);
71static PyObject *
72pycaca_draw_polyline(PyObject *self, PyObject *args);
73static PyObject *
74pycaca_draw_thin_polyline(PyObject *self, PyObject *args);
75static PyObject *
76pycaca_draw_thin_line(PyObject *self, PyObject *args);
77static PyObject *
78pycaca_draw_circle(PyObject *self, PyObject *args);
79static PyObject *
80pycaca_draw_ellipse(PyObject *self, PyObject *args);
81static PyObject *
82pycaca_draw_thin_ellipse(PyObject *self, PyObject *args);
83static PyObject *
84pycaca_fill_ellipse(PyObject *self, PyObject *args);
85static PyObject *
86pycaca_draw_box(PyObject *self, PyObject *args);
87static PyObject *
88pycaca_fill_box(PyObject *self, PyObject *args);
89static PyObject *
90pycaca_draw_thin_box(PyObject *self, PyObject *args);
91static PyObject *
92pycaca_draw_triangle(PyObject *self, PyObject *args);
93static PyObject *
94pycaca_draw_thin_triangle(PyObject *self, PyObject *args);
95static PyObject *
96pycaca_fill_triangle(PyObject *self, PyObject *args);
97
98/* Charactere drawing */
99static PyObject *
100pycaca_set_color(PyObject *self, PyObject *args);
101static PyObject *
102pycaca_get_fg_color(PyObject *self, PyObject *args);
103static PyObject *
104pycaca_get_bg_color(PyObject *self, PyObject *args);
105static PyObject *
106pycaca_get_color_name(PyObject *self, PyObject *args);
107static PyObject *
108pycaca_putchar(PyObject *self, PyObject *args);
109static PyObject *
110pycaca_putstr(PyObject *self, PyObject *args);
111static PyObject *
112pycaca_printf(PyObject *self, PyObject *args);
113/*static PyObject *
114pycaca_get_screen(PyObject *self, PyObject *args);*/
115  static PyObject *
116pycaca_clear(PyObject *self, PyObject *args);
117
118
119/* Sprites functions */
120static PyObject *
121pycaca_load_sprite(PyObject *self, PyObject *args);
122static PyObject *
123pycaca_draw_sprite(PyObject *self, PyObject *args);
124static PyObject *
125pycaca_get_sprite_frames(PyObject *self, PyObject *args);
126static PyObject *
127pycaca_get_sprite_width(PyObject *self, PyObject *args);
128static PyObject *
129pycaca_get_sprite_height(PyObject *self, PyObject *args);
130static PyObject *
131pycaca_get_sprite_dx(PyObject *self, PyObject *args);
132static PyObject *
133pycaca_get_sprite_dy(PyObject *self, PyObject *args);
134static PyObject *
135pycaca_free_sprite(PyObject *self, PyObject *args);
136
137
138
139/* Exporters */
140static PyObject *
141pycaca_get_html(PyObject *self, PyObject *args);
142static PyObject *
143pycaca_get_html3(PyObject *self, PyObject *args);
144static PyObject *
145pycaca_get_irc(PyObject *self, PyObject *args);
146static PyObject *
147pycaca_get_ansi(PyObject *self, PyObject *args);
148
149
150/* Bitmap functions */
151static PyObject *
152pycaca_create_bitmap(PyObject *self, PyObject *args);
153static PyObject *
154pycaca_set_bitmap_palette(PyObject *self, PyObject *args);
155static PyObject *
156pycaca_set_bitmap_gamma(PyObject *self, PyObject *args);
157static PyObject *
158pycaca_draw_bitmap(PyObject *self, PyObject *args);
159static PyObject *
160pycaca_free_bitmap(PyObject *self, PyObject *args);
Note: See TracBrowser for help on using the repository browser.