[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-txtw-itrsmrks

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2012年 9月 7日 (金) 08:34:40 JST


-------------------------
REMOTE_ADDR = 70.49.49.99
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-itrsmrks
-------------------------
@@ -364,10 +364,28 @@
  txtvu.buffer.copy_clipboard(clipboard)
  txtvu.buffer.paste_clipboard(clipboard, nil, true)
 
-:Check out the API:
-    * Gtk::TextBuffer#paste_clipboard(clipboard, override_location, default_editable)
-    * Gtk::TextBuffer#copy_clipboard(clipboard)
-    *  Gtk::TextBuffer#cut_clipboard(clipboard, default_editable)
+Following is the API for these methods:
+
+--- paste_clipboard(clipboard, override_location, default_editable)
+
+    Pastes the contents of a clipboard at the insertion point, or at override_location. (Note: pasting is asynchronous, that is, we'll ask for the paste data and return, and at some point later after the main loop runs, the paste data will be inserted.)
+    * clipboard : the Gtk::Clipboard to paste from 
+    * override_location : location to insert pasted text, or nil for at the cursor 
+    * default_editable : true if the buffer is editable by default 
+    * Returns: self
+
+--- copy_clipboard(clipboard)
+
+    Copies the currently-selected text to a clipboard.
+    * clipboard: the Gtk::Clipboard object to copy to. 
+    * Returns: self
+
+--- cut_clipboard(clipboard, default_editable)
+
+    Copies the currently-selected text to a clipboard, then deletes said text if it's editable.
+    * clipboard: the Gtk::Clipboard object to cut to
+    * default_editable : true if the buffer is editable by default 
+    * Returns: self
 
 Though it is possible to manipulate the clipboard directly, for the simplest clipboard actions such as cuting, copying and pasting text it makes more sense to use just mentioned Gtk::TextBuffer's built-in instance methods. 
 




ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る