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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2013年 3月 20日 (水) 10:30:46 JST


-------------------------
REMOTE_ADDR = 184.145.81.215
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-intro
-------------------------
@@ -21,3 +21,12 @@
 Though, what is shown in chapter 11 in 'drawingareas.rb' program is far from what the full-blown "undo/redo" functionality would look like, understanding the two, namely, the manual clearing of the drawing area on the one hand, and on the other the automatic clearing/redrawing of the window when 'expose-event' is emitted, is absolutely required before you can attempt to implement stacked, partial "undo/redo" behaviours, usually triggered when user repeatedly presses the((*<Ctrl+Z>*))keys, which also reveal how copies of drawing area surfaces have to be stored by the programmer each time electronic pen, brush, or 'eraser' is applied to the drawing area. In fact the illusion of the phantom (non-existent) 'electronic eraser' is achieved, by repainting the drawing surfaces with the saved image of the drawing area before user made the latest changes to the surface. Subsequently pressing the "<Ctrl+Z>" key combination, repaints the drawing area with the image stored before the ear
 lier re-stored image, ... 
 
 We will delve into our investigation of drawing surfaces, by rewriting the 'drawingareas.rb' program from chapter 11, turning the plain single colour background surface into a background adorned with an arbitrary image you load from an image file on your disk.
+
+
+
+    {{br}}
+    {{image_left("1201-DrwAreaWithStretchableBgImage-00.png")}}
+
+
+    {{br}}
+    {{image_right("1201-DrwAreaWithStretchableBgImage-both-s1.png")}}




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