GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Gtk::ComboBoxEntry Class Reference

A GtkComboBoxEntry C++ wrapper class. More...

#include <gfc/gtk/comboboxentry.hh>

Inheritance diagram for GFC::Gtk::ComboBoxEntry:

GFC::Gtk::ComboBox GFC::Gtk::Bin GFC::Gtk::CellLayout GFC::Gtk::Container GFC::G::TypeInterface GFC::Gtk::Widget GFC::G::TypeInstance GFC::Gtk::Object GFC::Atk::Implementor GFC::Trackable GFC::G::Object GFC::G::TypeInterface GFC::G::TypeInstance GFC::G::TypeInstance GFC::Trackable GFC::Trackable GFC::Gtk::ComboBoxEntryText List of all members.

Public Member Functions

Constructors
Accessors
Methods

Protected Member Functions

Constructors

Detailed Description

A GtkComboBoxEntry C++ wrapper class.

ComboBoxEntry is a widget with a text entry field with a dropdown list.


Constructor & Destructor Documentation

GFC::Gtk::ComboBoxEntry::ComboBoxEntry GtkComboBoxEntry *  entry_box,
bool  owns_reference = false
[explicit, protected]
 

Construct a new ComboBoxEntry from an existing GtkComboBoxEntry.

Parameters:
entry_box A pointer to a GtkComboBoxEntry.
owns_reference Set false if the initial reference count is floating, set true if it's not.

The entry_box can be a newly created GtkComboBoxEntry or an existing GtkComboBoxEntry (see G::Object::Object).

GFC::Gtk::ComboBoxEntry::ComboBoxEntry  ) 
 

Constructs a new ComboBoxEntry which has an Entry widget as child.

After construction, you should set a model using Gtk::ComboBbox::set_model() and a text_column using set_text_column().

GFC::Gtk::ComboBoxEntry::ComboBoxEntry TreeModel model,
int  text_column
 

Constructs a new ComboBoxEntry which has an Entry widget and a popup list of strings.

Parameters:
model A Gtk::TreeModel.
text_column A column in model to get the strings from.

You can get the Entry widget from a ComboBoxEntry by casting Gtk::Bin::get_child() to an Entry. To add and remove strings from the list, just modify model using its data manipulation API.


Member Function Documentation

String GFC::Gtk::ComboBoxEntry::get_text  )  const
 

Retrieves the contents of the entry widget (see also Gtk::Entry::get_text()).

Returns:
A String that contains the contents of the entry widget.

int GFC::Gtk::ComboBoxEntry::get_text_column  )  const
 

Gets the column which the entry box is using to get the strings from.

Returns:
A column in the data source model of the entry box.

void GFC::Gtk::ComboBoxEntry::set_text_column int  text_column  ) 
 

Sets the model column which the entry box should use to get strings from to be text_column.

Parameters:
text_column A column in model to get the strings from.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:38 2004 for GFC-UI by doxygen 1.3.8