[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-treev-parts

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 17日 (金) 02:50:54 JST


-------------------------
REMOTE_ADDR = 70.49.49.99
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts
-------------------------
@@ -195,6 +195,10 @@
 
 === Renderers and Columns
 
+
+
+==== Cell Renderers:
+
 As we have seen, after creating the Gtk::TreeView, you have to add one or more columns to the view for it to be of any use. Each Gtk::TreeViewColumn is composed of a header displaying a short description of its content, and at least one cell renderer. All cell renderers are derived from the Gtk::CellRenderer class. Each cell renderer contains a number of properties that determine how data will  be drawn within a cell. 
 
 The Gtk::CellRenderer class provides common properties to all derived renderer classes including: background colour, size parameters, alignment, mode, visibility, sensitivity, padding, etc. You should check the API documentation for full list. It also provides  ((*editing_canceled*)) and ((*editing-started*)) signals, the former emitted when the user cancels the process of editing a cell, and the latter emitted when a cell is started to be edited.
@@ -209,6 +213,16 @@
 ###### foreground # -e- ##########
 
 Our example program introduces Gtk::CellRendererText class. Gtk::CellRenderer hierarchy of classes provides a plethora of additional properties and instance methods which you can use to alter the appearance of the display. So you will have an idea what instance methods are available to Gtk::CellRenderer and Gtk::TreeViewColumn objects, I will for your convenience list some of them at the end of this session. 
+
+
+
+==== Columns:
+
+Columns are directly associated with cell renderer as well as with tree view. These relationships can be seen in the following code segment: 
 
  column = Gtk::TreeViewColumn.new("Buy", renderer, "text" => BUY_IT)
  treeview.append_column(column)




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