ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 23日 (金) 06:13:59 JST
------------------------- REMOTE_ADDR = 184.145.95.170 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd ------------------------- @@ -20,6 +20,6 @@ {{br}} {{br}} -When in the context of GUI we are talking about "dragging and dropping" our operating domain consists of three kinds of objects. In particular in our Gtk environment, we are dragging (moving) Gtk widgets between two different geometric locations. One is the location from which you are dragging a widget. This location is called the 'source' location. Naturally, the location to which you would like to drag the widget will then be called the 'destination' location. So the three object we mentioned earlier are (1) the graphic object you are moving, (2) the source location, and (3) the destination location. Behind the scene the drag-and-drop metaphor a significant inter-process communications is shielded from GUI developers. Namely, when a user initiates the drag process in the source environment the information about the object being dragged must be conveyed to the destination so it can properly react to the 'drop'. Depending on the type of 'drag' action the source and destinati on may, at the completion of the 'drag', need to perform different but coordinated actions, such as copying, duplicating and/or removing the object being dragged from the source location, and placing, or perhaps even refusing to accept the dragged object at the destination point. -In this chapter we will be looking at these features and the related objects. Note that we have already touched the drag-and-drop metaphor in previous chapter [segment: 9.6.2.2], when discussing '((<Dragging a Toolbar Within a Window|tut-gtk2-mnstbs-tb#Dragging a Toolbar Within a Window>))'. We will revisit the parts of the last (dnd-toolbox.rb) example program there, because it introduces an exception to plain drag-and-drop action, where mostly the GUI developer rather than, as in most cases, the Gtk system magically provides the implementation of drag-and-drop actions. + +In this chapter we will be looking at the drag-and-drag metaphor, its features and other related objects. Note that we have already touched the drag-and-drop metaphor in previous chapter [segment: 9.6.2.2], when discussing '((<Dragging a Toolbar Within a Window|tut-gtk2-mnstbs-tb#Dragging a Toolbar Within a Window>))'. We will also revisit the parts of the last (dnd-toolbox.rb) example program there, because it introduces an exception to plain drag-and-drop action, where mostly the GUI developer rather than, as in most cases, the Gtk system magically provides the implementation of drag-and-drop actions.