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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2013年 4月 3日 (水) 03:00:39 JST


-------------------------
REMOTE_ADDR = 70.49.48.128
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-rbcatut-dwc
-------------------------
@@ -85,7 +85,10 @@
 The above sample program is direct translation of the respective example found in ((<the official Cairo Tutorial|URL:http://www.cairographics.org/tutorial/>)). However, it is rather deceiving, because it hides a few important concepts, a student will discover only it they try to write this program in the Gtk/Cairo environment, where the hidden issues will pop up. For your convenience I have exposed the most obvious ones on the image here on the right side of this paragraph. However there is also the the additional hidden problem, only shows if you move the square shape away from the edges of the image. Though this can be done by simply adjusting all the x,y coordinates given as parameters to shape drawing methods, it would be counter productive to immerse ourselves in boring, repetitive and trivial programming exercises, which would additionally obfuscate the simple example program, revealing the source manipulation concepts, we are trying to grasp here. Moreover, the same t
 ask can be accomplished by a single cairo method called 'translate(tx, ty)', which we will cover a number of paragraph later in  
 section 12.3.4 ((<Working with Transforms|tut-gtk2-dancr-rbcatut-dwc#Working with Transforms>)). 
 
+However, it is unlikely, you'd discover these problems, merely by reading and running this example as originally written in the official Cairo Tutorial without trying to convert it so it would run in some GUI environment like our Gtk/Cairo, or at least by experimenting with the original example's size/scale settings, and perhaps trying to place the drawing away from the edges of the drawing surface. This is exactly what we are going to do next.
 
+
+{{br}}
 :Exposing all the issues of the 'setsourcergb' program example
 
     (12.3.2.1.A1){{br}}




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