Ardour  9.0-pre0-582-g084a23a80d
Gtk::CellRendererCombo Class Reference

#include <cellrenderercombo.h>

Inheritance diagram for Gtk::CellRendererCombo:
[legend]

Public Member Functions

virtual ~CellRendererCombo ()
 
GtkCellRendererCombogobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkCellRendererCombogobj () const
 Provides access to the underlying C GtkObject. More...
 
 CellRendererCombo ()
 
Glib::SignalProxy2< void, const Glib::ustring &, const TreeModel::iterator & > signal_changed ()
 
Glib::PropertyProxy< Glib::RefPtr< Gtk::TreeModel > > property_model ()
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gtk::TreeModel > > property_model () const
 
Glib::PropertyProxy< int > property_text_column ()
 
Glib::PropertyProxy_ReadOnly< int > property_text_column () const
 
Glib::PropertyProxy< bool > property_has_entry ()
 
Glib::PropertyProxy_ReadOnly< bool > property_has_entry () const
 
virtual Glib::PropertyProxy_Base _property_renderable ()
 
- Public Member Functions inherited from Gtk::CellRendererText
virtual ~CellRendererText ()
 
GtkCellRendererTextgobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkCellRendererTextgobj () const
 Provides access to the underlying C GtkObject. More...
 
 CellRendererText ()
 
void set_fixed_height_from_font (int number_of_rows)
 
Glib::SignalProxy2< void, const Glib::ustring &, const Glib::ustring & > signal_edited ()
 
Glib::PropertyProxy< Glib::ustring > property_text ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_text () const
 
Glib::PropertyProxy_WriteOnly< Glib::ustring > property_markup ()
 
Glib::PropertyProxy< Pango::AttrList > property_attributes ()
 
Glib::PropertyProxy_ReadOnly< Pango::AttrList > property_attributes () const
 
Glib::PropertyProxy_WriteOnly< Glib::ustring > property_background ()
 
Glib::PropertyProxy_WriteOnly< Glib::ustring > property_foreground ()
 
Glib::PropertyProxy< Gdk::Colorproperty_background_gdk ()
 
Glib::PropertyProxy_ReadOnly< Gdk::Colorproperty_background_gdk () const
 
Glib::PropertyProxy< Gdk::Colorproperty_foreground_gdk ()
 
Glib::PropertyProxy_ReadOnly< Gdk::Colorproperty_foreground_gdk () const
 
Glib::PropertyProxy< Glib::ustring > property_font ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_font () const
 
Glib::PropertyProxy< Pango::FontDescription > property_font_desc ()
 
Glib::PropertyProxy_ReadOnly< Pango::FontDescription > property_font_desc () const
 
Glib::PropertyProxy< Glib::ustring > property_family ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_family () const
 
Glib::PropertyProxy< Pango::Style > property_style ()
 
Glib::PropertyProxy_ReadOnly< Pango::Style > property_style () const
 
Glib::PropertyProxy< Pango::Variant > property_variant ()
 
Glib::PropertyProxy_ReadOnly< Pango::Variant > property_variant () const
 
Glib::PropertyProxy< int > property_weight ()
 
Glib::PropertyProxy_ReadOnly< int > property_weight () const
 
Glib::PropertyProxy< Pango::Stretch > property_stretch ()
 
Glib::PropertyProxy_ReadOnly< Pango::Stretch > property_stretch () const
 
Glib::PropertyProxy< int > property_size ()
 
Glib::PropertyProxy_ReadOnly< int > property_size () const
 
Glib::PropertyProxy< double > property_size_points ()
 
Glib::PropertyProxy_ReadOnly< double > property_size_points () const
 
Glib::PropertyProxy< double > property_scale ()
 
Glib::PropertyProxy_ReadOnly< double > property_scale () const
 
Glib::PropertyProxy< bool > property_editable ()
 
Glib::PropertyProxy_ReadOnly< bool > property_editable () const
 
Glib::PropertyProxy< bool > property_strikethrough ()
 
Glib::PropertyProxy_ReadOnly< bool > property_strikethrough () const
 
Glib::PropertyProxy< Pango::Underline > property_underline ()
 
Glib::PropertyProxy_ReadOnly< Pango::Underline > property_underline () const
 
Glib::PropertyProxy< int > property_rise ()
 
Glib::PropertyProxy_ReadOnly< int > property_rise () const
 
Glib::PropertyProxy< Glib::ustring > property_language ()
 
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_language () const
 
Glib::PropertyProxy< Pango::EllipsizeMode > property_ellipsize ()
 
Glib::PropertyProxy_ReadOnly< Pango::EllipsizeMode > property_ellipsize () const
 
Glib::PropertyProxy< int > property_width_chars ()
 
Glib::PropertyProxy_ReadOnly< int > property_width_chars () const
 
Glib::PropertyProxy< Pango::WrapMode > property_wrap_mode ()
 
Glib::PropertyProxy_ReadOnly< Pango::WrapMode > property_wrap_mode () const
 
Glib::PropertyProxy< int > property_wrap_width ()
 
Glib::PropertyProxy_ReadOnly< int > property_wrap_width () const
 
Glib::PropertyProxy< Pango::Alignment > property_alignment ()
 
Glib::PropertyProxy_ReadOnly< Pango::Alignment > property_alignment () const
 
Glib::PropertyProxy< bool > property_background_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_background_set () const
 
Glib::PropertyProxy< bool > property_foreground_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_foreground_set () const
 
Glib::PropertyProxy< bool > property_family_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_family_set () const
 
Glib::PropertyProxy< bool > property_style_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_style_set () const
 
Glib::PropertyProxy< bool > property_variant_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_variant_set () const
 
Glib::PropertyProxy< bool > property_weight_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_weight_set () const
 
Glib::PropertyProxy< bool > property_stretch_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_stretch_set () const
 
Glib::PropertyProxy< bool > property_size_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_size_set () const
 
Glib::PropertyProxy< bool > property_scale_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_scale_set () const
 
Glib::PropertyProxy< bool > property_editable_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_editable_set () const
 
Glib::PropertyProxy< bool > property_strikethrough_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_strikethrough_set () const
 
Glib::PropertyProxy< bool > property_underline_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_underline_set () const
 
Glib::PropertyProxy< bool > property_rise_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_rise_set () const
 
Glib::PropertyProxy< bool > property_language_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_language_set () const
 
Glib::PropertyProxy< bool > property_ellipsize_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_ellipsize_set () const
 
Glib::PropertyProxy< bool > property_single_paragraph_mode ()
 
Glib::PropertyProxy_ReadOnly< bool > property_single_paragraph_mode () const
 
- Public Member Functions inherited from Gtk::CellRenderer
virtual ~CellRenderer ()
 
GtkCellRenderergobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkCellRenderergobj () const
 Provides access to the underlying C GtkObject. More...
 
void get_size (Widget &widget, const Gdk::Rectangle &cell_area, int &x_offset, int &y_offset, int &width, int &height) const
 
void get_size (Widget &widget, int &x_offset, int &y_offset, int &width, int &height) const
 
void render (const Glib::RefPtr< Gdk::Window > &window, Widget &widget, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, const Gdk::Rectangle &expose_area, CellRendererState flags)
 
bool activate (GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags)
 
CellEditablestart_editing (GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags=CellRendererState(0))
 
void set_fixed_size (int width, int height)
 
void get_fixed_size (int &width, int &height) const
 
void set_alignment (float xalign, float yalign)
 
void get_alignment (float &xalign, float &yalign) const
 
void set_padding (int xpad, int ypad)
 
void get_padding (int &xpad, int &ypad) const
 
void set_visible (bool visible=true)
 
bool get_visible () const
 
void set_sensitive (bool sensitive=true)
 
bool get_sensitive () const
 
void editing_canceled ()
 
void stop_editing (bool canceled=false)
 
Glib::SignalProxy0< void > signal_editing_canceled ()
 
Glib::SignalProxy2< void, CellEditable *, const Glib::ustring & > signal_editing_started ()
 
Glib::PropertyProxy< CellRendererModeproperty_mode ()
 
Glib::PropertyProxy_ReadOnly< CellRendererModeproperty_mode () const
 
Glib::PropertyProxy< bool > property_visible ()
 
Glib::PropertyProxy_ReadOnly< bool > property_visible () const
 
Glib::PropertyProxy< bool > property_sensitive ()
 
Glib::PropertyProxy_ReadOnly< bool > property_sensitive () const
 
Glib::PropertyProxy< float > property_xalign ()
 
Glib::PropertyProxy_ReadOnly< float > property_xalign () const
 
Glib::PropertyProxy< float > property_yalign ()
 
Glib::PropertyProxy_ReadOnly< float > property_yalign () const
 
Glib::PropertyProxy< unsigned int > property_xpad ()
 
Glib::PropertyProxy_ReadOnly< unsigned int > property_xpad () const
 
Glib::PropertyProxy< unsigned int > property_ypad ()
 
Glib::PropertyProxy_ReadOnly< unsigned int > property_ypad () const
 
Glib::PropertyProxy< int > property_width ()
 
Glib::PropertyProxy_ReadOnly< int > property_width () const
 
Glib::PropertyProxy< int > property_height ()
 
Glib::PropertyProxy_ReadOnly< int > property_height () const
 
Glib::PropertyProxy< bool > property_is_expander ()
 
Glib::PropertyProxy_ReadOnly< bool > property_is_expander () const
 
Glib::PropertyProxy< bool > property_is_expanded ()
 
Glib::PropertyProxy_ReadOnly< bool > property_is_expanded () const
 
Glib::PropertyProxy_WriteOnly< Glib::ustring > property_cell_background ()
 
Glib::PropertyProxy< Gdk::Colorproperty_cell_background_gdk ()
 
Glib::PropertyProxy_ReadOnly< Gdk::Colorproperty_cell_background_gdk () const
 
Glib::PropertyProxy< bool > property_cell_background_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_cell_background_set () const
 
Glib::PropertyProxy_ReadOnly< bool > property_editing () const
 
- Public Member Functions inherited from Gtk::Object
virtual ~Object ()
 
GtkObjectgobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkObjectgobj () const
 Provides access to the underlying C GtkObject. More...
 
Glib::PropertyProxy< void * > property_user_data ()
 
Glib::PropertyProxy_ReadOnly< void * > property_user_data () const
 

Related Functions

(Note that these are not member functions.)

Gtk::CellRendererCombowrap (GtkCellRendererCombo *object, bool take_copy=false)
 

Additional Inherited Members

- Protected Member Functions inherited from Gtk::CellRendererText
virtual void on_edited (const Glib::ustring &path, const Glib::ustring &new_text)
 This is a default handler for the signal signal_edited(). More...
 
void edited (const Glib::ustring &path, const Glib::ustring &new_text)
 
- Protected Member Functions inherited from Gtk::CellRenderer
virtual void on_editing_canceled ()
 This is a default handler for the signal signal_editing_canceled(). More...
 
 CellRenderer ()
 
virtual void get_size_vfunc (Widget &widget, const Gdk::Rectangle *cell_area, int *x_offset, int *y_offset, int *width, int *height) const
 
virtual void render_vfunc (const Glib::RefPtr< Gdk::Drawable > &window, Widget &widget, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, const Gdk::Rectangle &expose_area, CellRendererState flags)
 
virtual bool activate_vfunc (GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags)
 
virtual CellEditablestart_editing_vfunc (GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags)
 

Detailed Description

Renders a combobox in a cell. CellRendererCombo renders text in a cell like CellRendererText, from which it is derived. But while CellRendererText offers a simple entry to edit the text, CellRendererCombo offers a ComboBox or ComboBoxEntry widget to edit the text. The values to display in the combo box are taken from the tree model specified in the model property.

The combo cell renderer takes care of adding a text cell renderer to the combo box and sets it to display the column specified by its text_column property. Further cell renderers can be added in a handler for the editing_started signal.

Definition at line 59 of file cellrenderercombo.h.

Constructor & Destructor Documentation

◆ ~CellRendererCombo()

virtual Gtk::CellRendererCombo::~CellRendererCombo ( )
virtual

◆ CellRendererCombo()

Gtk::CellRendererCombo::CellRendererCombo ( )

Member Function Documentation

◆ _property_renderable()

virtual Glib::PropertyProxy_Base Gtk::CellRendererCombo::_property_renderable ( )
virtual

Returns the property that this CellRenderer renders. For instance, property_text for CellRendererText, and property_active for CellRendererToggle Needs to be overridden in derived classes.

Reimplemented from Gtk::CellRendererText.

◆ gobj() [1/2]

GtkCellRendererCombo* Gtk::CellRendererCombo::gobj ( )
inline

Provides access to the underlying C GtkObject.

Definition at line 96 of file cellrenderercombo.h.

◆ gobj() [2/2]

const GtkCellRendererCombo* Gtk::CellRendererCombo::gobj ( ) const
inline

Provides access to the underlying C GtkObject.

Definition at line 99 of file cellrenderercombo.h.

◆ property_has_entry() [1/2]

Glib::PropertyProxy< bool > Gtk::CellRendererCombo::property_has_entry ( )

If FALSE, don't allow to enter strings other than the chosen ones.

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

◆ property_has_entry() [2/2]

Glib::PropertyProxy_ReadOnly< bool > Gtk::CellRendererCombo::property_has_entry ( ) const

If FALSE, don't allow to enter strings other than the chosen ones.

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

◆ property_model() [1/2]

Glib::PropertyProxy< Glib::RefPtr<Gtk::TreeModel> > Gtk::CellRendererCombo::property_model ( )

The model containing the possible values for the combo box.

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

◆ property_model() [2/2]

Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gtk::TreeModel> > Gtk::CellRendererCombo::property_model ( ) const

The model containing the possible values for the combo box.

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

◆ property_text_column() [1/2]

Glib::PropertyProxy< int > Gtk::CellRendererCombo::property_text_column ( )

A column in the data source model to get the strings from.

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

◆ property_text_column() [2/2]

Glib::PropertyProxy_ReadOnly< int > Gtk::CellRendererCombo::property_text_column ( ) const

A column in the data source model to get the strings from.

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

◆ signal_changed()

Glib::SignalProxy2< void,const Glib::ustring&,const TreeModel::iterator& > Gtk::CellRendererCombo::signal_changed ( )
Slot Prototype:
void on_my_changed(const Glib::ustring& path, const TreeModel::iterator& iter)

Friends And Related Function Documentation

◆ wrap()

Gtk::CellRendererCombo * wrap ( GtkCellRendererCombo object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

The documentation for this class was generated from the following file: