- Timestamp:
- May 19, 2009, 2:52:10 AM (13 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/event.c
r2821 r3473 230 230 * 231 231 * \param ev The libcaca event. 232 * \param utf8 A string buffer with enough bytes to hold the pressed 233 * key value in UTF-8. Though fewer bytes may be written to 234 * it, 7 bytes is the minimum safe size. 232 235 * \return This function always returns 0. 233 236 */ -
libcaca/trunk/doc/doxygen.cfg.in
r3472 r3473 568 568 @top_srcdir@/doc \ 569 569 @top_srcdir@/caca \ 570 @top_srcdir@/caca/codec \ 571 @top_srcdir@/caca/driver \ 570 572 @top_srcdir@/ruby 571 573 -
libcaca/trunk/doc/migrating.dox
r2824 r3473 48 48 caca_canvas_t *cv; 49 49 caca_display_t *dp; 50 dp = caca_create_display( cv);50 dp = caca_create_display(NULL); 51 51 cv = caca_get_canvas(dp); 52 52 /* Set window title */ … … 72 72 Note the following important things: 73 73 74 - Functions now take an object handle as their first argument. 75 - All input/output functions start with \b caca_ and all 76 drawing and text handling functions start with \b caca_ . 74 - Most functions now take an object handle as their first argument. 77 75 78 76 \section foo2 Migration strategy … … 105 103 \endcode 106 104 </td></tr></table> 105 106 The modified code is guaranteed to build both with \e libcaca 0.x and 107 \e libcaca 1.0. 107 108 108 109 \section foo3 Function equivalence list … … 147 148 - \b caca_putchar(): use caca_put_char(). 148 149 - \b caca_putstr(): use caca_put_str(). 149 - \b caca_printf(): u se caca_printf().150 - \b caca_printf(): unchanged. 150 151 - \b caca_clear(): use caca_clear_canvas(). 151 152 … … 155 156 fact that they now act on a given canvas. 156 157 157 - \b caca_draw_line(): u se caca_draw_line().158 - \b caca_draw_polyline(): u se caca_draw_polyline().159 - \b caca_draw_thin_line(): u se caca_draw_thin_line().160 - \b caca_draw_thin_polyline(): u se caca_draw_thin_polyline().161 162 - \b caca_draw_circle(): u se caca_draw_circle().163 - \b caca_draw_ellipse(): u se caca_draw_ellipse().164 - \b caca_draw_thin_ellipse(): u se caca_draw_thin_ellipse().165 - \b caca_fill_ellipse(): u se caca_fill_ellipse().166 167 - \b caca_draw_box(): u se caca_draw_box().158 - \b caca_draw_line(): unchanged. 159 - \b caca_draw_polyline(): unchanged. 160 - \b caca_draw_thin_line(): unchanged. 161 - \b caca_draw_thin_polyline(): unchanged. 162 163 - \b caca_draw_circle(): unchanged. 164 - \b caca_draw_ellipse(): unchanged. 165 - \b caca_draw_thin_ellipse(): unchanged. 166 - \b caca_fill_ellipse(): unchanged. 167 168 - \b caca_draw_box(): unchanged. 168 169 - \b caca_draw_thin_box(): use caca_draw_thin_box() or caca_draw_cp437_box(). 169 - \b caca_fill_box(): u se caca_fill_box().170 171 - \b caca_draw_triangle(): u se caca_draw_triangle().172 - \b caca_draw_thin_triangle(): u se caca_draw_thin_triangle().173 - \b caca_fill_triangle(): u se caca_fill_triangle().170 - \b caca_fill_box(): unchanged. 171 172 - \b caca_draw_triangle(): unchanged. 173 - \b caca_draw_thin_triangle(): unchanged. 174 - \b caca_fill_triangle(): unchanged. 174 175 175 176 \subsection bar5 Mathematical functions 176 177 177 - \b caca_rand(): u se caca_rand(). The second argument is different, make178 - \b caca_rand(): unchanged, but the second argument is different, make 178 179 sure you take that into account. 179 180 - \b caca_sqrt(): this function is now deprecated, use your system's -
libcaca/trunk/doc/style.dox
r1879 r3473 48 48 \code 49 49 int function(int); 50 \endcode 50 51 52 A space can be inserted after keywords such as \c for, \c while or \c if, 53 but consistency with the rest of the page is encouraged: 54 55 \code 51 56 if(a == b) 52 57 return; 58 59 if (p == NULL) 53 60 \endcode 54 61 -
libcaca/trunk/doc/tutorial.dox
r2879 r3473 39 39 nothing otherwise). 40 40 - Set the current canvas colours to black background and white foreground. 41 - Write the string "This is a message" using the current colors onto the42 c anvas.43 - Refresh the display .44 - Wait for an event of type "CACA_EVENT_KEY_PRESS".41 - Write the string \c "This is a message" onto the canvas, using the current 42 colour pair. 43 - Refresh the display, causing the text to be effectively displayed. 44 - Wait for an event of type \c CACA_EVENT_KEY_PRESS. 45 45 - Free the display (release memory). Since it was created together with the 46 46 display, the canvas will be automatically freed as well. 47 47 48 48 You can then compile this code on an UNIX-like system using the following 49 comman (requiring pkg-config andgcc):49 commans (requiring \c pkg-config and \c gcc): 50 50 \code 51 51 gcc `pkg-config --libs --cflags caca` example.c -o example -
libcaca/trunk/doc/user.dox
r1879 r3473 4 4 5 5 Some environment variables can be used to change the behaviour of 6 \e libcaca without having to modify the program which uses them. These6 \e libcaca without having to modify the program which uses it. These 7 7 variables are: 8 8 -
libcaca/trunk/ruby/ruby-caca.dox
r2822 r3473 1 1 /*$Id$ */ /** \page libcaca-ruby-api Libcaca Ruby API 2 2 3 The classes available for libcaca are :3 The classes available for libcaca are : 4 4 5 5 \li\b Caca::Canvas : functions that have a caca_canvas_t* as first argument … … 19 19 \li\b Caca::Event::Quit 20 20 21 The character set conversion functions are not available yet in the binding.21 The character set conversion functions are not available yet in the binding. 22 22 23 23 \code … … 118 118 \endcode 119 119 120 \section Samples120 \section Samples 121 121 122 122 \code … … 133 133 [5,2],[0,0]]).export_memory("irc")' 134 134 -. 135 | `.135 | `. 136 136 ----`- 137 137 \endcode
Note: See TracChangeset
for help on using the changeset viewer.