ruby-****@lists*****
ruby-****@lists*****
2003年 7月 16日 (水) 15:29:11 JST
------------------------- REMOTE_ADDR = 61.204.181.66 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/?Gtk%3A%3ATreeViewColumn ------------------------- = class Gtk::TreeViewColumn The Gtk::TreeViewColumn object is a visible column in a Gtk::TreeView widget. It determines the geometry, type. == super class * Gtk::Object == class methods --- Gtk::TreeViewColumn.new(title = nil, cell_renderer = nil, attributes = nil) Creates a new Gtk::TreeViewColumn. * title: The title to set the header to. * cell_renderer: The Gtk::CellRenderer * attributes: the hash of attributes which are the properties on cell_renderer to be set from the value. {attr_key1 => value1, attr_key2 => value2, .... }. attr_keys are Symbol or String. {:text => "Hello", :background => "green", editable => true} * Returns : A newly created Gtk::TreeViewColumn. == public instance methods --- pack_start(cell, expand) Packs the cell into the beginning of the column. If expand is false, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is true. * cell: The Gtk::CellRenderer. * expand: true if cell is to be given extra space allocated to box. * Returns: self --- pack_end(cell, expand) Adds the cell to end of the column. If expand is false, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is true. * cell: The Gtk::CellRenderer. * expand: true if cell is to be given extra space allocated to box. * Returns: self --- clear Unsets all the mappings on all renderers on the Gtk::TreeViewColumn. * Returns: self --- cell_renderers Returns an array of all the cell renderers in the column, in no particular order. * Returns: An array of Gtk::CellRenderer s --- add_attribute(cell_renderer, attribute, column) Adds an attribute mapping to the list in the Gtk::TreeViewColumn. The column is the column of the model to get a value from, and the attribute is the parameter on cell_renderer to be set from the value. So for example if column 2 of the model contains strings, you could have the :text attribute of a Gtk::CellRendererText get its values from column 2. * cell_renderer: the Gtk::CellRenderer to set attributes on * attribute: An attribute on the renderer(Symbol or String) * column: The column position on the model to get the attribute from. * Returns: self --- set_cell_data_func not yet * Returns: self --- alignment not yet * Returns: self --- alignment= not yet * Returns: self --- cell_data_func= not yet * Returns: self --- cell_is_visible? not yet * Returns: self --- cell_set_cell_data not yet * Returns: self --- cell_size not yet * Returns: self --- clear_attributes not yet * Returns: self --- clickable= not yet * Returns: self --- clickable? not yet * Returns: self --- clicked not yet * Returns: self --- fixed_width not yet * Returns: self --- fixed_width= not yet * Returns: self --- max_width not yet * Returns: self --- max_width= not yet * Returns: self --- min_width not yet * Returns: self --- min_width= not yet * Returns: self --- reorderable= not yet * Returns: self --- reorderable? not yet * Returns: self --- resizable= not yet * Returns: self --- resizable? not yet * Returns: self --- set_alignment not yet * Returns: self --- set_clickable not yet * Returns: self --- set_fixed_width not yet * Returns: self --- set_max_width not yet * Returns: self --- set_min_width not yet * Returns: self --- set_reorderable not yet * Returns: self --- set_resizable not yet * Returns: self --- set_sizing not yet * Returns: self --- set_sort_column_id not yet * Returns: self --- set_sort_indicator not yet * Returns: self --- set_sort_order not yet * Returns: self --- set_spacing not yet * Returns: self --- set_title not yet * Returns: self --- set_visible not yet * Returns: self --- set_widget not yet * Returns: self --- sizing not yet * Returns: self --- sizing= not yet * Returns: self --- sort_column_id not yet * Returns: self --- sort_column_id= not yet * Returns: self --- sort_indicator= not yet * Returns: self --- sort_indicator? not yet * Returns: self --- sort_order not yet * Returns: self --- sort_order= not yet * Returns: self --- spacing not yet * Returns: self --- spacing= not yet * Returns: self --- title not yet * Returns: self --- title= not yet * Returns: self --- visible= not yet * Returns: self --- visible? not yet * Returns: self --- widget not yet * Returns: self --- widget= not yet * Returns: self --- width not yet * Returns: self == constants === GtkTreeViewColumnSizing The sizing method the column uses to determine its width. Please note that Gtk::TreeViewColumn::AUTOSIZE are inefficient for large views, and can make columns appear choppy. --- GROW_ONLY Columns only get bigger in reaction to changes in the model. --- AUTOSIZE Columns resize to be the optimal size everytime the model changes. --- FIXED Columns are a fixed numbers of pixels wide. == signals --- clicked: self * self: Gtk::TreeViewColumn == See Also Gtk::TreeView, Gtk::TreeSelection, Gtk::TreeDnd, Gtk::TreeMode, Gtk::TreeSortable, Gtk::TreeModelSort, Gtk::ListStore, Gtk::TreeStore, Gtk::CellRenderer, Gtk::CellEditable, Gtk::CellRendererPixbuf, Gtk::CellRendererText, Gtk::CellRendererToggle ------------------------- = class Gtk::TreeViewColumn The Gtk::TreeViewColumn object is a visible column in a Gtk::TreeView widget. It determines the geometry, type. == super class * Gtk::Object == class methods --- Gtk::TreeViewColumn.new(title = nil, cell_renderer = nil, attributes = nil) Creates a new Gtk::TreeViewColumn. * title: The title to set the header to. * cell_renderer: The Gtk::CellRenderer * attributes: the hash of attributes which are the properties on cell_renderer to be set from the value. {attr_key1 => value1, attr_key2 => value2, .... }. attr_keys are Symbol or String. {:text => "Hello", :background => "green", editable => true} * Returns : A newly created Gtk::TreeViewColumn. == public instance methods --- pack_start(cell, expand) Packs the cell into the beginning of the column. If expand is false, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is true. * cell: The Gtk::CellRenderer. * expand: true if cell is to be given extra space allocated to box. * Returns: self --- pack_end(cell, expand) Adds the cell to end of the column. If expand is false, then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is true. * cell: The Gtk::CellRenderer. * expand: true if cell is to be given extra space allocated to box. * Returns: self --- clear Unsets all the mappings on all renderers on the Gtk::TreeViewColumn. * Returns: self --- cell_renderers Returns an array of all the cell renderers in the column, in no particular order. * Returns: An array of Gtk::CellRenderer s --- add_attribute(cell_renderer, attribute, column) Adds an attribute mapping to the list in the Gtk::TreeViewColumn. The column is the column of the model to get a value from, and the attribute is the parameter on cell_renderer to be set from the value. So for example if column 2 of the model contains strings, you could have the :text attribute of a Gtk::CellRendererText get its values from column 2. * cell_renderer: the Gtk::CellRenderer to set attributes on * attribute: An attribute on the renderer(Symbol or String) * column: The column position on the model to get the attribute from. * Returns: self --- set_cell_data_func(cell) {|tvc, cell, model, iter| ... } Sets the block which is used instead of the standard attributes mapping for setting the column value, and should set the value of Gtk::TreeViewColumn's cell renderer as appropriate. * cell: A Gtk::CellRenderer * {|tvc, cell, model, iter| ... }: the block * tvc: the Gtk::TreeViewColumn * cell: the Gtk::CellRenderer * model: the Gtk::TreeModel * iter: the Gtk::TreeIter * Returns: self --- clear_attributes(cell_renderer) Clears all existing attributes previously set with Gtk::TreeViewColumn#add_attribute. * cell_renderer: a Gtk::CellRenderer to clear the attribute mapping on. * Returns: self --- spacing Returns the spacing of the Gtk::TreeViewColumn. * Returns : the spacing of the Gtk::TreeViewColumn. --- spacing=(spacing) Sets the spacing field of the Gtk::TreeViewColumn, which is the number of pixels to place between cell renderers packed into it. * spacing: distance between cell renderers in pixels. * Returns: spacing --- set_spacing(spacing) Same as spacing=. * spacing: distance between cell renderers in pixels. * Returns: self --- visible? Returns true if Gtk::TreeViewColumn is visible. * Returns: whether the column is visible or not. If it is visible, then the tree will show the column. --- visible=(visible) Sets the visibility of Gtk::TreeViewColumn. * visible : true if the Gtk::TreeViewColumn is visible. * Returns: visible --- set_visible(visible) Same as visible=. * Returns: self --- alignment not yet * Returns: self --- alignment= not yet * Returns: self --- cell_data_func= not yet * Returns: self --- cell_is_visible? not yet * Returns: self --- cell_set_cell_data not yet * Returns: self --- cell_size not yet * Returns: self --- clickable= not yet * Returns: self --- clickable? not yet * Returns: self --- clicked not yet * Returns: self --- fixed_width not yet * Returns: self --- fixed_width= not yet * Returns: self --- max_width not yet * Returns: self --- max_width= not yet * Returns: self --- min_width not yet * Returns: self --- min_width= not yet * Returns: self --- reorderable= not yet * Returns: self --- reorderable? not yet * Returns: self --- resizable= not yet * Returns: self --- resizable? not yet * Returns: self --- set_alignment not yet * Returns: self --- set_clickable not yet * Returns: self --- set_fixed_width not yet * Returns: self --- set_max_width not yet * Returns: self --- set_min_width not yet * Returns: self --- set_reorderable not yet * Returns: self --- set_resizable not yet * Returns: self --- set_sizing not yet * Returns: self --- set_sort_column_id not yet * Returns: self --- set_sort_indicator not yet * Returns: self --- set_sort_order not yet * Returns: self --- set_title not yet * Returns: self --- set_widget not yet * Returns: self --- sizing not yet * Returns: self --- sizing= not yet * Returns: self --- sort_column_id not yet * Returns: self --- sort_column_id= not yet * Returns: self --- sort_indicator= not yet * Returns: self --- sort_indicator? not yet * Returns: self --- sort_order not yet * Returns: self --- sort_order= not yet * Returns: self --- title not yet * Returns: self --- title= not yet * Returns: self --- widget not yet * Returns: self --- widget= not yet * Returns: self --- width not yet * Returns: self == constants === GtkTreeViewColumnSizing The sizing method the column uses to determine its width. Please note that Gtk::TreeViewColumn::AUTOSIZE are inefficient for large views, and can make columns appear choppy. --- GROW_ONLY Columns only get bigger in reaction to changes in the model. --- AUTOSIZE Columns resize to be the optimal size everytime the model changes. --- FIXED Columns are a fixed numbers of pixels wide. == signals --- clicked: self * self: Gtk::TreeViewColumn == See Also Gtk::TreeView, Gtk::TreeSelection, Gtk::TreeDnd, Gtk::TreeMode, Gtk::TreeSortable, Gtk::TreeModelSort, Gtk::ListStore, Gtk::TreeStore, Gtk::CellRenderer, Gtk::CellEditable, Gtk::CellRendererPixbuf, Gtk::CellRendererText, Gtk::CellRendererToggle