ruby-****@sourc*****
ruby-****@sourc*****
2013年 3月 28日 (木) 02:33:40 JST
------------------------- REMOTE_ADDR = 70.49.48.128 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut ------------------------- @@ -604,7 +604,8 @@ The above code in Ruby Cairo library is completely unsupported. While "Cairo.pattern_create_linear" and "Cairo.pattern_create_radial", nor "Cairo::Context#add_color_stop_rgb/rgba" and "Cairo::Context#add_color_stop_rgb/rgba" do not exist at all, "Cairo::Context#set_source" and "Cairo::Context#mask" are not adequately documented, most likely because their parameters also are nowhere explained nor mentioned except in error messages. Namely, the line "cr.set_source(linearg)" would produce the following error message: ((*"`set_source': not a cairo pattern"*)), and the line "cr.mask(radialg)" blows up with: ((*"`mask': not a cairo surface".*)) - {{br}}However, it is possible to use pure Ruby Cairo Library by requiring Cairo module ((*require 'cairo',*)) and create the missing methods. We will look at that shortly. + {{br}}However, it is possible to use pure Ruby Cairo Library by requiring Cairo module (((*require 'cairo'*))), and create the missing methods. We will look at that shortly. +