ruby-****@sourc*****
ruby-****@sourc*****
2013年 3月 29日 (金) 22:43:49 JST
------------------------- REMOTE_ADDR = 70.49.48.128 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut ------------------------- @@ -477,7 +477,6 @@ #width, height = da.window.size # Your code goes between the two dashed lines: # -- your code - start ----------------------------------------- -s- - # ------------------- clone: drawing surface creation ---- -s- # Frame what would be the drawing area, if image_surface_create # were available in Ruby: @@ -494,7 +493,5 @@ ) cr.set_font_size(1.2) cr.set_source_rgb(0, 0, 1) - cr_te = cr.text_extents("a") cr.move_to(0.5 - cr_te.width / 2 - cr_te.x_bearing, 0.5 - cr_te.height / 2 - cr_te.y_bearing) @@ -502,7 +500,4 @@ # -- your code - end ------------------------------------------- -e- end end # // EndOf class TextExtendsDemo - window = TextExtendsDemo.new("TextExtends Tut. Example") window.show_all Gtk.main