ruby-****@sourc*****
ruby-****@sourc*****
2013年 3月 31日 (日) 01:27:12 JST
------------------------- REMOTE_ADDR = 70.49.48.128 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut-crdrmd ------------------------- @@ -1,7 +1,7 @@ = (12.3) Ruby Cairo Tutorial {{link "tut-gtk2-dancr-rbcatut-intro", "tut-gtk2-dancr", "tut-gtk", "tut-gtk2-dancr-rbcatut-dwc"}} -= Sorry, this sub-chapter is still under construction +#= Sorry, this sub-chapter is still under construction # (12.3.1) [current file: ... tut-gtk2-dancr-rbcatut-crdrmd] # [next file: ...... tut-gtk2-dancr-rbcatut-dwc] @@ -9,13 +9,6 @@ :Contents of this sub-chapter: - - * 12.3.1 ((<Cairo's Drawing Model|tut-gtk2-dancr-rbcatut-crdrmd#Cairo's Drawing Model>)) - * 12.3.1.1 ((<Nouns|tut-gtk2-dancr-rbcatut-crdrmd#Nouns>)) - * 12.3.1.2 ((<Verbs|tut-gtk2-dancr-rbcatut-crdrmd#Verbs>)) - - * 12.3.1.2.1.A1 ((<Scale|tut-gtk2-dancr-rbcatut-crdrmd#Scale>)) - * 12.3.1 ((<Cairo's Drawing Model|tut-gtk2-dancr-rbcatut-crdrmd#Cairo's Drawing Model>)) * 12.3.1.1 ((<Nouns|tut-gtk2-dancr-rbcatut-crdrmd#Nouns>)) * 12.3.1.1.1 ((<Destination|tut-gtk2-dancr-rbcatut-crdrmd#Destination>)) @@ -23,7 +16,-1 @@ * 12.3.1.1.3 ((<Mask|tut-gtk2-dancr-rbcatut-crdrmd#Mask>)) * 12.3.1.1.4 ((<Path|tut-gtk2-dancr-rbcatut-crdrmd#Path>)) * 12.3.1.1.5 ((<Context|tut-gtk2-dancr-rbcatut-crdrmd#Context>)) - * 12.3.1.2 ((<Verbs|tut-gtk2-dancr-rbcatut-crdrmd#Verbs>)) * 12.3.1.2.1 ((<Stroke|tut-gtk2-dancr-rbcatut-crdrmd#Stroke>)) @@ -296,6 +288,-1 @@ Now, lets look at the same cairo drawing as we would write it in a Ruby Gtk/Cairo version of the "Show Text / Glyphs" example program. I took liberty to add and change a few things. If you'd like to write the contents of the cairo drawing area to a file, of course, you should employ Ruby Gtk's file manipulation behaviour, explained in section 12.2 "((<Writing the Image Of a Drawing Area Into a Pixbuf File|tut-gtk2-dancr-wr-dapxb2file>))". + #{{br}}{{image_right("1203-p06-showtext-rb-s1.png")}} {{br}}{{image_right("1203-p06-showtext-in-gtkCairo.png")}} @@ -515,8 +0,0 @@ window = MaskDemo.new("Mask Tut. Example") window.show_all Gtk.main -{{br}} -{{br}} + @@ -526,8 +518,5 @@ # ------- REQUIRED FILES: ----------- {{br}} {{br}} -(12.3.XXXX+1){{br}} +#(12.3.XXXX+1){{br}} + :To run the examples in this article download the following files into your program directory: + + (12.3.1.2.6){{br}} + * hiki2-gtk-w-cairo.rb' .......... module file; see section 12.3.0.3 ((<Hiki Gtk With Cairo Module Download File|tut-gtk2-dancr-rbcatut-intro#Hiki Gtk With Cairo Module Download File>)). + # See: (12.1.3)