Rechercher une page de manuel
libcaca-ruby-api.3caca
Langue: en
Version: 341179 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
NAME
libcaca-ruby-api - Libcaca Ruby APIClasses
The classes available for libcaca are :
- •
- Caca::Canvas : functions that have a caca_canvas_t* as first argument
- •
- Caca::Dither : functions that have a caca_dither_t* as first argument
- •
- Caca::Font : functions that have a caca_font_t* as first argument (The constructor can currently only accept the name of a builtin font)
- •
- Caca::Display
- •
- Caca::Event
- •
- Caca::Event::Key
- •
- Caca::Event::Key::Press
- •
- Caca::Event::Key::Release
- •
- Caca::Event::Mouse
- •
- Caca::Event::Mouse::Press
- •
- Caca::Event::Mouse::Release
- •
- Caca::Event::Mouse::Motion
- •
- Caca::Event::Resize
- •
- Caca::Event::Quit
The character set conversion functions are not available yet in the binding.
$ irb -rcaca irb(main):001:0> class Object irb(main):002:1> def Object.my_instance_methods irb(main):003:2> instance_methods.sort - ancestors[1].instance_methods irb(main):004:2> end irb(main):005:1> def Object.my_methods irb(main):006:2> methods.sort - ancestors[1].methods irb(main):007:2> end irb(main):008:1> end
irb(main):009:0> Caca.constants => ['BROWN', 'BOLD', 'GREEN', 'LIGHTMAGENTA', 'LIGHTBLUE', 'BLINK',
irb(main):010:0> Caca.my_methods => ['version']
irb(main):011:0> Caca::Canvas.my_methods => ['export_list', 'import_list']
irb(main):012:0> Caca::Canvas.my_instance_methods => ['attr=', 'blit', 'clear', 'create_frame',
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre