[ruby-gnome2-doc-cvs] [Hiki] update - Gtk::TreeViewColumn

Zurück zum Archiv-Index

ruby-****@lists***** ruby-****@lists*****
2003年 7月 16日 (水) 14:31:49 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
    
    * Returns: self

--- alignment
    
    * Returns: self
--- alignment=
    
    * Returns: self
--- cell_data_func=
    
    * Returns: self
--- cell_is_visible?
    
    * Returns: self
--- cell_set_cell_data
    
    * Returns: self
--- cell_size
    
    * Returns: self
--- clear_attributes
    
    * Returns: self
--- clickable=
    
    * Returns: self
--- clickable?
    
    * Returns: self
--- clicked
    
    * Returns: self
--- fixed_width
    
    * Returns: self
--- fixed_width=
    
    * Returns: self
--- max_width
    
    * Returns: self
--- max_width=
    
    * Returns: self
--- min_width
    
    * Returns: self
--- min_width=
    
    * Returns: self
--- reorderable=
    
    * Returns: self
--- reorderable?
    
    * Returns: self
--- resizable=
    
    * Returns: self
--- resizable?
    
    * Returns: self
--- set_alignment
    
    * Returns: self
--- set_clickable
    
    * Returns: self
--- set_fixed_width
    
    * Returns: self
--- set_max_width
    
    * Returns: self
--- set_min_width
    
    * Returns: self
--- set_reorderable
    
    * Returns: self
--- set_resizable
    
    * Returns: self
--- set_sizing
    
    * Returns: self
--- set_sort_column_id
    
    * Returns: self
--- set_sort_indicator
    
    * Returns: self
--- set_sort_order
    
    * Returns: self
--- set_spacing
    
    * Returns: self
--- set_title
    
    * Returns: self
--- set_visible
    
    * Returns: self
--- set_widget
    
    * Returns: self
--- sizing
    
    * Returns: self
--- sizing=
    
    * Returns: self
--- sort_column_id
    
    * Returns: self
--- sort_column_id=
    
    * Returns: self
--- sort_indicator=
    
    * Returns: self
--- sort_indicator?
    
    * Returns: self
--- sort_order
    
    * Returns: self
--- sort_order=
    
    * Returns: self
--- spacing
    
    * Returns: self
--- spacing=
    
    * Returns: self
--- title
    
    * Returns: self
--- title=
    
    * Returns: self
--- visible=
    
    * Returns: self
--- visible?
    
    * Returns: self
--- widget
    
    * Returns: self
--- widget=
    
    * Returns: self
--- width
    
    * 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
     
    * Returns: self

--- alignment
     
    * Returns: self
--- alignment=
     
    * Returns: self
--- cell_data_func=
     
    * Returns: self
--- cell_is_visible?
     
    * Returns: self
--- cell_set_cell_data
     
    * Returns: self
--- cell_size
     
    * Returns: self
--- clear_attributes
     
    * Returns: self
--- clickable=
     
    * Returns: self
--- clickable?
     
    * Returns: self
--- clicked
     
    * Returns: self
--- fixed_width
     
    * Returns: self
--- fixed_width=
     
    * Returns: self
--- max_width
     
    * Returns: self
--- max_width=
     
    * Returns: self
--- min_width
     
    * Returns: self
--- min_width=
     
    * Returns: self
--- reorderable=
     
    * Returns: self
--- reorderable?
     
    * Returns: self
--- resizable=
     
    * Returns: self
--- resizable?
     
    * Returns: self
--- set_alignment
     
    * Returns: self
--- set_clickable
     
    * Returns: self
--- set_fixed_width
    
    * Returns: self
--- set_max_width
    
    * Returns: self
--- set_min_width
    
    * Returns: self
--- set_reorderable
    
    * Returns: self
--- set_resizable
    
    * Returns: self
--- set_sizing
    
    * Returns: self
--- set_sort_column_id
    
    * Returns: self
--- set_sort_indicator
    
    * Returns: self
--- set_sort_order
    
    * Returns: self
--- set_spacing
    
    * Returns: self
--- set_title
    
    * Returns: self
--- set_visible
    
    * Returns: self
--- set_widget
    
    * Returns: self
--- sizing
    
    * Returns: self
--- sizing=
    
    * Returns: self
--- sort_column_id
    
    * Returns: self
--- sort_column_id=
    
    * Returns: self
--- sort_indicator=
    
    * Returns: self
--- sort_indicator?
    
    * Returns: self
--- sort_order
    
    * Returns: self
--- sort_order=
    
    * Returns: self
--- spacing
    
    * Returns: self
--- spacing=
    
    * Returns: self
--- title
    
    * Returns: self
--- title=
    
    * Returns: self
--- visible=
    
    * Returns: self
--- visible?
    
    * Returns: self
--- widget
    
    * Returns: self
--- widget=
    
    * Returns: self
--- width
    
    * 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 





ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index