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

Single line text input. More...

#include <entry.hh>

Inheritance diagram for gltk::Entry:
gltk::Widget

List of all members.

Public Member Functions

void get_preferred_height (int &min, int &nat) const
 obtain minimum & natural heights
void get_preferred_width (int &min, int &nat) const
 obtain minimum & natural widths
void set_text (std::string const &)
 set the content of input
std::string const & get_text () const
 get the content of input
size_t get_text_length () const
 return length of input
void set_editable (bool v=true)
 enable/disable editing
void set_visibility (bool v=true)
 obscure the charactes
sigc::signal< void > & signal_activate ()
 signal when text is enterred
sigc::signal< void > & signal_stop ()
 signal when Entry lost focus

Detailed Description

Single line text input.

This Widget shows a one-line text field and allows manipulation of the text.

Entry.png
Examples:

entry.cc.

 All Classes Namespaces Files Functions Variables Enumerations Enumerator