A simple listbox which presents some lines of information in columns and lets the user select some of them. More...
List of all members.
Detailed Description
A simple listbox which presents some lines of information in columns and lets the user select some of them. 
This is a convenience class, based on Gtk::TreeView, which allows only text values and does not allow child items. In most cases you will actually need the functionality offered by a real Gtk::TreeView with your own type-safe Gtk::TreeModel::ColumnRecord.
- Since gtkmm 2.10:
Member Typedef Documentation
Constructor & Destructor Documentation
      
        
          | Gtk::ListViewText::ListViewText | ( | guint | columns_count, | 
        
          |  |  | bool | editable = false, | 
        
          |  |  | Gtk::SelectionMode | mode = Gtk::SELECTION_SINGLE | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | virtual Gtk::ListViewText::~ListViewText | ( |  | ) |  [virtual] | 
      
 
 
Member Function Documentation
Add a new row at the end of the list. 
- Parameters:
- 
  
    | column_one_value | the new text for the new row, column 0 |  
 
- Returns:
- the number of the row added 
 
 
      
        
          | void Gtk::ListViewText::clear_items | ( |  | ) |  | 
      
 
 
      
        
          | Glib::ustring Gtk::ListViewText::get_column_title | ( | guint | column | ) | const | 
      
 
Gets the title of column column. 
- Parameters:
- 
  
  
- Returns:
- the title of column column. 
 
 
      
        
          | guint Gtk::ListViewText::get_num_columns | ( |  | ) | const | 
      
 
- Returns:
- the number of columns in the listbox 
 
 
Returns a vector of the indexes of the selected rows. 
- Returns:
- a SelectionList with the selection results 
 
 
      
        
          | Glib::ustring Gtk::ListViewText::get_text | ( | guint | row, | 
        
          |  |  | guint | column = 0 | 
        
          |  | ) |  | const | 
      
 
Obtain the value of an existing cell from the list. 
- Parameters:
- 
  
    | row | the number of the row in the listbox. |  | column | the number of the column in the row. |  
 
- Returns:
- the value of that cell, if it exists. 
 
 
Insert a new row at an arbitrary position in the list. 
- Parameters:
- 
  
    | row | The row number |  | column_one_value | the new text for the new row, column 0 |  
 
 
 
Insert a new row at the beginning of the list. 
- Parameters:
- 
  
    | column_one_value | the new text for the new row, column 0 |  
 
 
 
      
        
          | void Gtk::ListViewText::set_column_title | ( | guint | column, | 
        
          |  |  | const Glib::ustring & | title | 
        
          |  | ) |  |  | 
      
 
Adds a title to column column. 
- Parameters:
- 
  
    | column | the column number. |  | title | the title for column column. |  
 
 
 
      
        
          | void Gtk::ListViewText::set_text | ( | guint | row, | 
        
          |  |  | const Glib::ustring & | value | 
        
          |  | ) |  |  | 
      
 
Change an existing value of a column 0 of a row of the list. 
- Parameters:
- 
  
    | row | the number of the row in the list. |  | value | the new contents of column 0 of the row. |  
 
 
 
      
        
          | void Gtk::ListViewText::set_text | ( | guint | row, | 
        
          |  |  | guint | column, | 
        
          |  |  | const Glib::ustring & | value | 
        
          |  | ) |  |  | 
      
 
Change an existing value of cell of the list. 
- Parameters:
- 
  
    | row | the number of the row in the list. |  | column | the number of the column in the row. |  | value | the new contents of that row and column. |  
 
 
 
      
        
          | guint Gtk::ListViewText::size | ( |  | ) | const | 
      
 
- Returns:
- the number of rows in the listbox 
 
 
Member Data Documentation
The documentation for this class was generated from the following file: