Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Public Member Functions
Xfc::Gtk::ComboBoxText Class Reference

A Text Gtk::ComboBox class. More...

#include <xfc/gtk/combobox.hh>

Inheritance diagram for Xfc::Gtk::ComboBoxText:
Xfc::Gtk::ComboBox Xfc::Gtk::Bin Xfc::Gtk::CellLayout Xfc::Gtk::Container Xfc::G::TypeInterface Xfc::Gtk::Widget Xfc::G::TypeInstance Xfc::Gtk::Object Xfc::Atk::Implementor Xfc::Trackable Xfc::G::Object Xfc::G::TypeInterface Xfc::G::TypeInstance Xfc::G::TypeInstance Xfc::Trackable Xfc::Trackable

List of all members.

Public Member Functions

Constructors


Detailed Description

A Text Gtk::ComboBox class.

ComboBoxText is a text combo box, which is a Gtk::ComboBox just displaying strings. If you use this text combo box, you should only manipulate its data source with the following convenience methods: append_text(), insert_text(), prepend_text() and remove_text().

See also: the ComboBox HOWTOs and examples.


Constructor & Destructor Documentation

Xfc::Gtk::ComboBoxText::ComboBoxText ( GtkComboBoxText *  combo_box,
bool  owns_reference = false 
) [explicit]

Construct a new ComboBox from an existing GtkComboBox.

Parameters:
combo_boxA pointer to a GtkComboBox.
owns_referenceSet false if the initial reference count is floating, set true if it's not.

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


Member Function Documentation

void Xfc::Gtk::ComboBoxText::append ( const String text)

Appends a string to the list of strings stored in the combo box.

Parameters:
textA text string.

Gets the currently active string in combo box.

Returns:
A string containing the currently active text, or a null string if none is selected.
void Xfc::Gtk::ComboBoxText::insert ( int  position,
const String text 
)

Inserts a string at position in the list of strings stored in the combo box.

Parameters:
positionAn index to insert text.
textA text string.
void Xfc::Gtk::ComboBoxText::prepend ( const String text)

Prepends a string to the list of strings stored in the combo box.

Parameters:
textA text string.
void Xfc::Gtk::ComboBoxText::remove ( int  position)

Removes the string at position from the combo box.

Parameters:
positionThe index of the item to remove.

The documentation for this class was generated from the following file:
Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC