Changeset 2003
- Timestamp:
- Nov 17, 2007, 3:15:01 AM (13 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/doc/doxygen.cfg.in
r1988 r2003 487 487 @top_srcdir@/doc \ 488 488 @top_srcdir@/cucul \ 489 @top_srcdir@/caca 489 @top_srcdir@/caca \ 490 @top_srcdir@/ruby 490 491 491 492 # This tag can be used to specify the character encoding of the source files that … … 507 508 cucul.h \ 508 509 caca.h \ 510 AUTHORS \ 509 511 NEWS \ 510 AUTHORS\512 README \ 511 513 THANKS \ 512 514 TODO -
libcaca/trunk/doc/libcaca.dox
r1879 r2003 34 34 - caca.h 35 35 36 There is language-specific documentation for the various bindings: 37 38 - \subpage libcaca-ruby 39 36 40 Some other topics are covered by specific sections: 37 41 -
libcaca/trunk/ruby/README
r1997 r2003 1 /* $Id$ */ /** \page libcaca-ruby Libcaca ruby bindings 2 1 3 This a Ruby binding for libcucul, libcaca will be added later. 2 4 … … 19 21 What is currently available is : 20 22 23 \code 21 24 $ irb -rcucul 22 25 irb(main):001:0> Cucul.constants … … 25 28 "UNDERLINE", "RED", "WHITE", "BLACK", "LIGHTCYAN", "LIGHTGRAY", 26 29 "ITALICS", "CYAN", "YELLOW", "LIGHTGREEN", "Canvas", "Font"] 30 \endcode 27 31 32 \code 28 33 irb(main):002:0> Cucul::Canvas.methods.sort - 29 34 Cucul::Canvas.ancestors[1].methods 30 35 => ["export_list", "import_list"] 36 \endcode 31 37 38 \code 32 39 irb(main):003:0> Cucul::Canvas.instance_methods.sort - 33 40 Cucul::Canvas.ancestors[1].instance_methods … … 45 52 "set_frame_name", "set_handle", "set_height", "set_size", "set_width", 46 53 "stretch_left", "stretch_right", "width", "width="] 54 \endcode 47 55 48 56 irb(main):004:0> Cucul::Font.methods.sort - … … 56 64 And here are sample uses : 57 65 66 \code 58 67 $ ruby -rcucul -e 'c=Cucul::Canvas.new(6, 3).fill_box(0,0,2,2,"#"[0]); 59 68 c2=Cucul::Canvas.new(1, 1).put_str(0,0,"x"); c.blit(1,1,c2); puts … … 62 71 #x# 63 72 ### 73 \endcode 64 74 75 \code 65 76 $ ruby -e 'puts Cucul::Canvas.new(6,3).draw_thin_polyline([[0,0], [2,0], 66 77 [5,2],[0,0]]).export_memory("irc")' … … 68 79 | `. 69 80 ----`- 81 \endcode 70 82 83 \code 71 84 $ ruby -rcucul -e 'p Cucul::Canvas.export_list' 72 85 [["caca", "native libcaca format"], ["ansi", "ANSI"], ["utf8", "UTF-8 … … 75 88 ["irc", "IRC with mIRC colours"], ["ps", "PostScript document"], ["svg", 76 89 "SVG vector image"], ["tga", "TGA image"]] 90 \endcode 77 91 92 \code 78 93 $ ruby -rcucul -e 'p Cucul::Font.list' 79 94 ["Monospace 9", "Monospace Bold 12"] 95 \endcode 96 97 */
Note: See TracChangeset
for help on using the changeset viewer.