Ignore:
Timestamp:
Jul 27, 2009, 1:26:15 AM (10 years ago)
Author:
Sam Hocevar
Message:

Rename caca_get_cursor_x() and caca_get_cursor_y() to caca_wherex() and
caca_wherey(), in order to match the old <conio.h> naming scheme.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/ruby-caca.dox

    r3553 r3587  
    3838irb(main):009:0>Caca.constants
    3939=>["BROWN", "BOLD", "GREEN", "LIGHTMAGENTA", "LIGHTBLUE", "BLINK",
    40 "MAGENTA","DEFAULT", "TRANSPARENT", "BLUE", "LIGHTRED", "DARKGRAY",
    41 "UNDERLINE","RED", "WHITE", "BLACK", "LIGHTCYAN", "LIGHTGRAY",
    42 "ITALICS","CYAN", "YELLOW", "LIGHTGREEN", "Canvas", "Dither", "Font"]
     40"MAGENTA", "DEFAULT", "TRANSPARENT", "BLUE", "LIGHTRED", "DARKGRAY",
     41"UNDERLINE", "RED", "WHITE", "BLACK", "LIGHTCYAN", "LIGHTGRAY",
     42"ITALICS", "CYAN", "YELLOW", "LIGHTGREEN", "Canvas", "Dither", "Font"]
    4343\endcode
    4444
     
    5555\code
    5656irb(main):012:0>Caca::Canvas.my_instance_methods
    57 =>["attr=", "blit", "clear", "create_frame", "cursor_x", "cursor_y",
    58 "dither_bitmap","draw_box", "draw_circle", "draw_cp437_box", "draw_ellipse",
    59 "draw_line","draw_polyline", "draw_thin_box", "draw_thin_ellipse",
    60 "draw_thin_line","draw_thin_polyline", "draw_thin_triangle",
    61 "draw_triangle","export_to_memory", "fill_box", "fill_ellipse",
    62 "fill_triangle","flip", "flop", "frame=", "frame_count", "frame_name",
    63 "frame_name=","free_frame", "get_attr", "get_char", "gotoxy",
    64 "handle_x","handle_y", "height", "height=", "import_file",
    65 "import_from_memory","invert", "printf", "put_attr", "put_char", "put_str",
    66 "rotate_180","rotate_left", "rotate_right", "set_attr",
    67 "set_boundaries","set_color_ansi", "set_color_argb", "set_frame",
    68 "set_frame_name","set_handle", "set_height", "set_size", "set_width",
    69 "stretch_left","stretch_right", "width", "width="]
     57=>["attr=", "blit", "clear", "create_frame",
     58"dither_bitmap", "draw_box", "draw_circle", "draw_cp437_box", "draw_ellipse",
     59"draw_line", "draw_polyline", "draw_thin_box", "draw_thin_ellipse",
     60"draw_thin_line", "draw_thin_polyline", "draw_thin_triangle",
     61"draw_triangle", "export_to_memory", "fill_box", "fill_ellipse",
     62"fill_triangle", "flip", "flop", "frame=", "frame_count", "frame_name",
     63"frame_name=", "free_frame", "get_attr", "get_char", "gotoxy",
     64"handle_x", "handle_y", "height", "height=", "import_file",
     65"import_from_memory", "invert", "printf", "put_attr", "put_char", "put_str",
     66"rotate_180", "rotate_left", "rotate_right", "set_attr",
     67"set_boundaries", "set_color_ansi", "set_color_argb", "set_frame",
     68"set_frame_name", "set_handle", "set_height", "set_size", "set_width",
     69"stretch_left", "stretch_right", "wherex", "wherey", "width", "width="]
    7070\endcode
    7171
     
    8383irb(main):015:0>Caca::Dither.my_instance_methods
    8484=>["algorithm=", "algorithm_list", "antialias=", "antialias_list",
    85 "brightness=","charset=", "charset_list", "color=", "color_list",
    86 "contrast=","gamma=", "palette=", "set_algorithm", "set_antialias",
    87 "set_brightness","set_charset", "set_color", "set_contrast",
    88 "set_gamma","set_palette"]
     85"brightness=", "charset=", "charset_list", "color=", "color_list",
     86"contrast=", "gamma=", "palette=", "set_algorithm", "set_antialias",
     87"set_brightness", "set_charset", "set_color", "set_contrast",
     88"set_gamma", "set_palette"]
    8989\endcode
    9090
     
    9292irb(main):010:0>Caca::Display.my_instance_methods
    9393=>["canvas", "get_event", "height", "mouse=", "mouse_x", "mouse_y", "refresh",
    94 "set_mouse","set_time", "set_title", "time", "time=", "title=", "width"]
     94"set_mouse", "set_time", "set_title", "time", "time=", "title=", "width"]
    9595\endcode
    9696
     
    141141\code
    142142$ruby -rcaca -e 'p Caca::Canvas.export_list'
    143 [["caca","native libcaca format"], ["ansi", "ANSI"], ["utf8", "UTF-8
     143[["caca", "native libcaca format"], ["ansi", "ANSI"], ["utf8", "UTF-8
    144144withANSI escape codes"], ["utf8cr", "UTF-8 with ANSI escape codes and
    145145MS-DOS\\r"], ["html", "HTML"], ["html3", "backwards-compatible HTML"],
    146 ["irc","IRC with mIRC colours"], ["ps", "PostScript document"], ["svg",
     146["irc", "IRC with mIRC colours"], ["ps", "PostScript document"], ["svg",
    147147"SVGvector image"], ["tga", "TGA image"]]
    148148\endcode
Note: See TracChangeset for help on using the changeset viewer.