[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-treeview-components

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2005年 8月 24日 (水) 22:09:15 JST


-------------------------
REMOTE_ADDR = 218.231.161.82
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki
        URL = /hiki.cgi?tut-treeview-components
-------------------------
TITLE       = tut-treeview-components -> Components: Model, Renderer, Column, View
-------------------------
@@ -5,4 +5,4 @@
 
 So, while Gtk::TreeModel is used to store data, there are other components that determine which data is displayed in the Gtk::TreeView and how it is displayed. These components are Gtk::TreeViewColumn and Gtk::CellRenderer. A Gtk::TreeView is made up of tree view columns. These are the columns that users perceive as columns. They have a clickable column header with a column title that can be hidden, and can be resized and sorted. Tree view columns do not display any data, they are only used as a device to represent the user-side of the tree view (sorting etc.) and serve as packing widgets for the components that do the actual rendering of data onto the screen, namely the Gtk::CellRenderer family of objects (I call them 'objects' because they are not ((<Gtk::Widgets|Gtk::Widget>))). There are a number of different cell renderers that specialise in rendering certain data like strings, pixbufs, or toggle buttons. More on this later.
 
-Cell renderers are packed into tree view columns to display data. A tree view column needs to contain at least one cell renderer, but can contain multiple cell renderers. For example, if one wanted to display a 'Filename' column where each filename has a little icon on the left indicating the file type, one would pack a Gtk::CellRendererPixbuf and a Gtk::CellRendererText into one tree view column. Packing renderers into a tree view column is similar to packing widgets into a Gtk::HBox
\ No newline at end of file
+Cell renderers are packed into tree view columns to display data. A tree view column needs to contain at least one cell renderer, but can contain multiple cell renderers. For example, if one wanted to display a 'Filename' column where each filename has a little icon on the left indicating the file type, one would pack a Gtk::CellRendererPixbuf and a Gtk::CellRendererText into one tree view column. Packing renderers into a tree view column is similar to packing widgets into a Gtk::HBox





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