[ruby-gnome2-doc-cvs] [Hiki] update - Gtk::TextView

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2005年 6月 17日 (金) 01:06:22 JST


-------------------------
REMOTE_ADDR = 218.45.66.76
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki        URL = http://ruby-gnome2.sourceforge.jp/cgi-bin/hiki/hiki.cgi?Gtk%3A%3ATextView
-------------------------
@@ -90,6 +90,15 @@
     * y: y position, in buffer coordinates 
     * Returns: a Gtk::TextIter 
 
+--- get_iter_at_position(x, y)
+    Retrieves the iterator pointing to the character at buffer coordinates x and y. Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with Gtk::TextView#window_to_buffer_coords.
+    Note that this is diffferent from Gtk::TextView#get_iter_at_location, which returns cursor locations, i.e. positions between characters.  ((* Since 2.6 *))
+    * x: x position, in buffer coordinates
+    * y: y position, in buffer coordinates
+    * Returns: [iter, trailing]
+       * iter: a Gtk::TextIter
+       * trailing: a trailing
+
 --- buffer_to_window_coords(win_type, buffer_x, buffer_y)
     Converts coordinate (buffer_x, buffer_y) to coordinates for the window win, and stores the result in (window_x, window_y).
     Note that you can't convert coordinates for a nonexisting window (see Gtk::TextView#set_border_window_size).
@@ -219,6 +228,27 @@
     * setting: true if to show the insertion cursor 
     * Returns: self
 
+--- overwrite?
+    Returns whether the Gtk::TextView is in overwrite mode or not.   ((* Since 2.4 *)) 
+    * Returns: true if overwrite.
+--- overwrite=(setting)
+    Changes the Gtk::TextView overwrite mode. ((* Since 2.4 *))
+    * setting: true if overwrite.
+    * Returns: setting
+--- set_overwrite(setting)
+    Same as overwrite=. ((* Since 2.4 *))
+    * setting: true if overwrite.
+    * Returns: self
+
 --- pixels_above_lines
     Gets the default number of pixels to put above paragraphs.
     * Returns: default number of pixels above paragraphs 
@@ -313,6 +334,39 @@
 --- set_tabs(tabs)
     Same as tabs=.
     * tabs: tabs as a Pango::TabArray 
+    * Returns: self
+
+--- accepts_tab?
+    Returns whether pressing the Tab key inserts a tab characters. See Gtk::TextView#accepts_tab=.
+    * Returns: true if pressing the Tab key inserts a tab character, false if pressing the Tab key moves the keyboard focus. ((* Since 2.4 *))
+--- accepts_tab=(accepts_tab)
+    Sets the behavior of the text widget when the Tab key is pressed. If accepts_tab is true a tab character is inserted. If accepts_tab is false the keyboard focus is moved to the next widget in the focus chain.
+    * accepts_tab: true if pressing the Tab key should insert a tab character, false, if pressing the Tab key should move the keyboard focus. ((* Since 2.4 *))
+    * Returns: accepts_tab
+--- set_accepts_tab(accepts_tab)
+    Same as accepts_tab=. ((* Since 2.4 *))
+    * accepts_tab: true if pressing the Tab key should insert a tab character, false, if pressing the Tab key should move the keyboard focus. ((* Since 2.4 *))
     * Returns: self
 
 --- default_attributes
@@ -409,4 +442,39 @@
 == See Also
 Gtk::TextBuffer, Gtk::TextIter
 
-- ((<Masao>))
+== ChangeLog
+* 2005-06-17 Added GTK+-2.4/2.6 methods. - ((<Masao>))
+* 2003-07-29 Added - ((<Masao>))





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