logo top
Main Page   Widgets   Namespaces   Book  

Gtk::TreeViewColumn Class Reference
[TreeView Classes]

Typedefed as Gtk::TreeView::Column. More...

Inheritance diagram for Gtk::TreeViewColumn:

Inheritance graph
[legend]
List of all members.

Public Types

typedef TreeViewColumn Column
typedef SigC::Slot2< void,
CellRenderer*, const Gtk::TreeModel::iterator& > 
SlotCellData

Public Member Functions

virtual ~TreeViewColumn ()
GtkTreeViewColumn* gobj ()
 Provides access to the underlying C GtkObject.

const GtkTreeViewColumn* gobj () const
 Provides access to the underlying C GtkObject.

 TreeViewColumn ()
 TreeViewColumn (const Glib::ustring& title)
 TreeViewColumn (const Glib::ustring& title, CellRenderer& cell)
template <class T_ModelColumnType>  TreeViewColumn (const Glib::ustring& title, const TreeModelColumn<T_ModelColumnType>& column)
 Create a default view column for the given model column type.

void pack_start (CellRenderer& cell, bool expand=true)
void pack_end (CellRenderer& cell, bool expand=true)
template <class T_ModelColumnType> void pack_start (const TreeModelColumn<T_ModelColumnType>& column, bool expand=true)
template <class T_ModelColumnType> void pack_end (const TreeModelColumn<T_ModelColumnType>& column, bool expand=true)
void clear ()
CellRendererget_first_cell_renderer ()
 Gets the CellRenderer for the column.

const CellRendererget_first_cell_renderer () const
 Gets the CellRenderer for the column.

Glib::ListHandle<CellRenderer*> get_cell_renderers ()
Glib::ListHandle<const CellRenderer*> get_cell_renderers () const
void add_attribute (CellRenderer& cell_renderer, const Glib::ustring& attribute, int column)
void add_attribute (const Glib::PropertyProxy_Base& property, const TreeModelColumnBase& column)
void set_renderer (Gtk::CellRenderer& renderer, const TreeModelColumnBase& column)
void set_cell_data_func (CellRenderer& cell_renderer, const SlotCellData& slot)
void unset_cell_data_func (CellRenderer& cell_renderer)
void clear_attributes (CellRenderer& cell_renderer)
void set_spacing (int spacing)
int get_spacing () const
void set_visible (bool visible=true)
bool get_visible () const
void set_resizable (bool resizable=true)
bool get_resizable () const
void set_sizing (TreeViewColumnSizing type)
TreeViewColumnSizing get_sizing ()
int get_width () const
int get_fixed_width () const
void set_fixed_width (int fixed_width)
void set_min_width (int min_width)
int get_min_width () const
void set_max_width (int max_width)
int get_max_width () const
void clicked ()
void set_title (const Glib::ustring& title)
Glib::ustring get_title () const
void set_expand (bool expand=true)
bool get_expand () const
void set_clickable (bool clickable=true)
bool get_clickable () const
void set_widget (Gtk::Widget& widget)
Widgetget_widget ()
const Widgetget_widget () const
void set_alignment (float xalign)
void set_alignment (AlignmentEnum xalign)
float get_alignment () const
void set_reorderable (bool reorderable=true)
bool get_reorderable () const
void set_sort_column_id (const TreeModelColumnBase& sort_column_id)
void set_sort_column_id (int sort_column_id)
int get_sort_column_id () const
void set_sort_indicator (bool setting)
bool get_sort_indicator () const
void set_sort_order (SortType order)
SortType get_sort_order () const
void cell_set_cell_data (const Glib::RefPtr<TreeModel>& tree_model, const TreeModel::iterator& iter, bool is_expander, bool is_expanded)
void cell_get_size (Gdk::Rectangle& cell_area, int& x_offset, int& y_offset, int& width, int& height) const
bool cell_is_visible () const
void focus_cell (CellRenderer& cell)
Glib::SignalProxy0<void> signal_clicked ()
Glib::PropertyProxy<bool> property_visible ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy_ReadOnly<
int > 
property_width ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<TreeViewColumnSizingproperty_sizing ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<int> property_fixed_width ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<int> property_min_width ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<int> property_max_width ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<Glib::ustringproperty_title ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_expand ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_clickable ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<Widget*> property_widget ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<float> property_alignment ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_reorderable ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<bool> property_sort_indicator ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Glib::PropertyProxy<SortTypeproperty_sort_order ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.


Protected Member Functions

virtual void on_clicked ()

Related Functions

(Note that these are not member functions.)

Gtk::TreeViewColumnwrap (GtkTreeViewColumn* object, bool take_copy=false)

Detailed Description

Typedefed as Gtk::TreeView::Column.

This is a visible column in a Gtk::TreeView widget. It determines the geometry, type.


Member Typedef Documentation

typedef TreeViewColumn Gtk::TreeViewColumn::Column
 

typedef SigC::Slot2<void, CellRenderer*, const Gtk::TreeModel::iterator&> Gtk::TreeViewColumn::SlotCellData
 


Constructor & Destructor Documentation

virtual Gtk::TreeViewColumn::~TreeViewColumn (  )  [virtual]
 

Gtk::TreeViewColumn::TreeViewColumn (  ) 
 

Gtk::TreeViewColumn::TreeViewColumn ( const Glib::ustring title  )  [explicit]
 

Gtk::TreeViewColumn::TreeViewColumn ( const Glib::ustring title,
CellRenderer cell
 

template <class T_ModelColumnType>
Gtk::TreeViewColumn::TreeViewColumn ( const Glib::ustring title,
const TreeModelColumn<T_ModelColumnType>&  column
 

Create a default view column for the given model column type.


Member Function Documentation

void Gtk::TreeViewColumn::add_attribute ( const Glib::PropertyProxy_Base property,
const TreeModelColumnBase column
 

void Gtk::TreeViewColumn::add_attribute ( CellRenderer cell_renderer,
const Glib::ustring attribute,
int  column
 

void Gtk::TreeViewColumn::cell_get_size ( Gdk::Rectangle cell_area,
int&  x_offset,
int&  y_offset,
int&  width,
int&  height
const
 

bool Gtk::TreeViewColumn::cell_is_visible (  )  const
 

void Gtk::TreeViewColumn::cell_set_cell_data ( const Glib::RefPtr<TreeModel>&  tree_model,
const TreeModel::iterator iter,
bool  is_expander,
bool  is_expanded
 

void Gtk::TreeViewColumn::clear (  ) 
 

void Gtk::TreeViewColumn::clear_attributes ( CellRenderer cell_renderer  ) 
 

void Gtk::TreeViewColumn::clicked (  ) 
 

void Gtk::TreeViewColumn::focus_cell ( CellRenderer cell  ) 
 

float Gtk::TreeViewColumn::get_alignment (  )  const
 

Glib::ListHandle<const CellRenderer*> Gtk::TreeViewColumn::get_cell_renderers (  )  const
 

Glib::ListHandle<CellRenderer*> Gtk::TreeViewColumn::get_cell_renderers (  ) 
 

bool Gtk::TreeViewColumn::get_clickable (  )  const
 

bool Gtk::TreeViewColumn::get_expand (  )  const
 

const CellRenderer* Gtk::TreeViewColumn::get_first_cell_renderer (  )  const
 

Gets the CellRenderer for the column.

You should dynamic_cast<> to the expected derived CellRenderer type. This assumes that the TreeViewColumn contains only one CellRenderer.

CellRenderer* Gtk::TreeViewColumn::get_first_cell_renderer (  ) 
 

Gets the CellRenderer for the column.

You should dynamic_cast<> to the expected derived CellRenderer type. This assumes that the TreeViewColumn contains only one CellRenderer.

int Gtk::TreeViewColumn::get_fixed_width (  )  const
 

int Gtk::TreeViewColumn::get_max_width (  )  const
 

int Gtk::TreeViewColumn::get_min_width (  )  const
 

bool Gtk::TreeViewColumn::get_reorderable (  )  const
 

bool Gtk::TreeViewColumn::get_resizable (  )  const
 

TreeViewColumnSizing Gtk::TreeViewColumn::get_sizing (  ) 
 

int Gtk::TreeViewColumn::get_sort_column_id (  )  const
 

bool Gtk::TreeViewColumn::get_sort_indicator (  )  const
 

SortType Gtk::TreeViewColumn::get_sort_order (  )  const
 

int Gtk::TreeViewColumn::get_spacing (  )  const
 

Glib::ustring Gtk::TreeViewColumn::get_title (  )  const
 

bool Gtk::TreeViewColumn::get_visible (  )  const
 

const Widget* Gtk::TreeViewColumn::get_widget (  )  const
 

Widget* Gtk::TreeViewColumn::get_widget (  ) 
 

int Gtk::TreeViewColumn::get_width (  )  const
 

const GtkTreeViewColumn* Gtk::TreeViewColumn::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Object.

GtkTreeViewColumn* Gtk::TreeViewColumn::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Object.

virtual void Gtk::TreeViewColumn::on_clicked (  )  [protected, virtual]
 

template <class T_ModelColumnType>
void Gtk::TreeViewColumn::pack_end ( const TreeModelColumn<T_ModelColumnType>&  column,
bool  expand = true
 

void Gtk::TreeViewColumn::pack_end ( CellRenderer cell,
bool  expand = true
 

template <class T_ModelColumnType>
void Gtk::TreeViewColumn::pack_start ( const TreeModelColumn<T_ModelColumnType>&  column,
bool  expand = true
 

void Gtk::TreeViewColumn::pack_start ( CellRenderer cell,
bool  expand = true
 

Glib::PropertyProxy<float> Gtk::TreeViewColumn::property_alignment (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::TreeViewColumn::property_clickable (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::TreeViewColumn::property_expand (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<int> Gtk::TreeViewColumn::property_fixed_width (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<int> Gtk::TreeViewColumn::property_max_width (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<int> Gtk::TreeViewColumn::property_min_width (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::TreeViewColumn::property_reorderable (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<TreeViewColumnSizing> Gtk::TreeViewColumn::property_sizing (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::TreeViewColumn::property_sort_indicator (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<SortType> Gtk::TreeViewColumn::property_sort_order (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Glib::ustring> Gtk::TreeViewColumn::property_title (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<bool> Gtk::TreeViewColumn::property_visible (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy<Widget*> Gtk::TreeViewColumn::property_widget (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Glib::PropertyProxy_ReadOnly<int> Gtk::TreeViewColumn::property_width (  ) 
 

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

void Gtk::TreeViewColumn::set_alignment ( AlignmentEnum  xalign  ) 
 

void Gtk::TreeViewColumn::set_alignment ( float  xalign  ) 
 

void Gtk::TreeViewColumn::set_cell_data_func ( CellRenderer cell_renderer,
const SlotCellData slot
 

void Gtk::TreeViewColumn::set_clickable ( bool  clickable = true  ) 
 

void Gtk::TreeViewColumn::set_expand ( bool  expand = true  ) 
 

void Gtk::TreeViewColumn::set_fixed_width ( int  fixed_width  ) 
 

void Gtk::TreeViewColumn::set_max_width ( int  max_width  ) 
 

void Gtk::TreeViewColumn::set_min_width ( int  min_width  ) 
 

void Gtk::TreeViewColumn::set_renderer ( Gtk::CellRenderer renderer,
const TreeModelColumnBase column
 

void Gtk::TreeViewColumn::set_reorderable ( bool  reorderable = true  ) 
 

void Gtk::TreeViewColumn::set_resizable ( bool  resizable = true  ) 
 

void Gtk::TreeViewColumn::set_sizing ( TreeViewColumnSizing  type  ) 
 

void Gtk::TreeViewColumn::set_sort_column_id ( int  sort_column_id  ) 
 

void Gtk::TreeViewColumn::set_sort_column_id ( const TreeModelColumnBase sort_column_id  ) 
 

void Gtk::TreeViewColumn::set_sort_indicator ( bool  setting  ) 
 

void Gtk::TreeViewColumn::set_sort_order ( SortType  order  ) 
 

void Gtk::TreeViewColumn::set_spacing ( int  spacing  ) 
 

void Gtk::TreeViewColumn::set_title ( const Glib::ustring title  ) 
 

void Gtk::TreeViewColumn::set_visible ( bool  visible = true  ) 
 

void Gtk::TreeViewColumn::set_widget ( Gtk::Widget widget  ) 
 

Glib::SignalProxy0<void> Gtk::TreeViewColumn::signal_clicked (  ) 
 

Prototype:
void clicked()

void Gtk::TreeViewColumn::unset_cell_data_func ( CellRenderer cell_renderer  ) 
 


Friends And Related Function Documentation

Gtk::TreeViewColumn* wrap ( GtkTreeViewColumn*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm 2.2 by Doxygen 1.3.4 © 1997-2001