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

Back to archive index

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


-------------------------
REMOTE_ADDR = 184.145.81.215
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dancr-intro
-------------------------
@@ -16,4 +16,8 @@
 
 The best way to get introduced to these issues is by trying to tackle the real life graphic programming issues related to background surfaces to which a user should be able to draw, paint or programmatically generate geometric shapes, and miscellaneous images, and most importantly from which he or she should also be able to remove drawings and/or images after they were drawn, painted or copied and rendered to the electronic surfaces and/or devices, most often, but not exclusively, the computer screens. This latest functionality in most GUI environments is dubbed "undoing" and/or "redoing".
 
-We have indeed, just slightly, already touched on these issues in chapter 11 on paragraph 11.1 "((<Drawing Widgets|tut-gtk2-agtkw-draww>))" discussing program called 'drawingareas.rb', suggesting you get familiar with the way user interactions may cause a drawing area to be redrawn (actually cleared, and how the programmer must make sure the drawn items do not get lost) when window is moved, resized, or even when focus is changed on widgets and windows. The program also implements the most basic "redo" functionality, by allowing user to clear the screen by pressing the Delete key. Though, this is far from what the full-blown "undo/redo" functionality would look like, it is the absolute requirement you understand the two, namely, manual clearing of the drawing area on the one hand, and the automatic clearing/redrawing of the window when 'expose-event' is emitted.
+We have indeed, just slightly, touched on these issues already in previous chapter in paragraph 11.1 "((<Drawing Widgets|tut-gtk2-agtkw-draww>))" discussing program called 'drawingareas.rb', suggesting you get familiar with the way user interactions may cause a drawing area to be redrawn (actually cleared, and how the programmer must make sure the drawn items do not get lost) when window is moved, resized, or even when focus is changed on widgets and windows. The program also implements the most basic "redo" functionality, by allowing user to clear the screen by pressing the Delete key. 
+
+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 any changes to the surface.
+
+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.




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