[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-dancr-rbcatut

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2013年 3月 28日 (木) 02:31:08 JST


-------------------------
REMOTE_ADDR = 70.49.48.128
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut
-------------------------
@@ -602,7 +602,9 @@
          cr.mask(radialg)
          # -- your code - end ------------------------------------------- -e-
 
-        The above code in Ruby 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".*))
+        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.
 
 
 




ruby-gnome2-cvs メーリングリストの案内
Back to archive index