gltk 0.3
a C++ widget library built on GLUT
Public Member Functions
gltk::ComboBoxText Class Reference

A Widget used to choose from a list of text items. More...

#include <comboboxtext.hh>

Inheritance diagram for gltk::ComboBoxText:
gltk::TextDraw gltk::Popup gltk::Widget

List of all members.

Public Member Functions

void append (std::string const &text)
 appends text to the list of strings
std::string get_active_text () const
 return the currently active text item
void remove_all ()
 remove all items
void set_active_text (std::string const &text)
 set the default active text
sigc::signal< void > & signal_changed ()
 signal when the active item is changed

Detailed Description

A Widget used to choose from a list of text items.

ComboBoxText.png

The popup menu of GLUT uses underlying window system. Its look and feel is beyond control.

Examples:

cbox.cc.

 All Classes Namespaces Files Functions Variables Enumerations Enumerator