ruby-****@sourc*****
ruby-****@sourc*****
2010年 6月 10日 (木) 21:45:25 JST
------------------------- REMOTE_ADDR = 92.49.230.9 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AEntry ------------------------- @@ -144,7 +144,7 @@ --- layout_offsets - Obtains the position of the Pango::Layout used to render text in the entry, in widget coordinates. Useful if you want to line up the [[http://cvresumewriters.com/|resume]] text in an entry with some other text, e.g. when using the entry to implement editable cells in a sheet widget. + Obtains the position of the Pango::Layout used to render text in the entry, in widget coordinates. Useful if you want to line up the ((<resume|URL:http://cvresumewriters.com/>)) text in an entry with some other text, e.g. when using the entry to implement editable cells in a sheet widget. Also useful to convert mouse events into coordinates inside the Pango::Layout, e.g. to take some action if some part of the entry text is clicked. Note that as the user scrolls around in the entry the offsets will change; you'll need to connect to the "notify::scroll_offset" signal to track this. Remember when using the Pango::Layout methods you need to convert to and from pixels using Pango#pixels() or Pango::SCALE. * Returns: [x, y]