ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 3日 (月) 02:11:06 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-textview ------------------------- @@ -110,7 +110,15 @@ textview.wrap_mode = Gtk::TextTag::WRAP_WORD +For your convenience I list all the relevant GTK constants also here: + + * Gtk::TextTag::WRAP_NONE - do not wrap lines; just make the text area wider. + * Gtk::TextTag::WRAP_CHAR - wrap text, breaking lines anywhere the cursor can appear (between characters, usually - if you want to be technical, between graphemes, see Pango.get_log_attrs). + * Gtk::TextTag::WRAP_WORD - wrap text, breaking lines in between words. + * Gtk::TextTag::WRAP_WORD_CHAR - wrap the same as Gtk::TextTag::WRAP_WORD, but if the whole word takes up more than the whole visible width of the text view, wrap it by the character. + You can find the constants for the above line at: ((<Gtk::TextTag#GtkWrapMode>)) + textview.justification = Gtk::JUSTIFY_RIGHT And again, you can find the constants for the above line at: ((<Gtk#GtkJustification>))