Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_InputBox Class Reference

clanGUI="Controls". More...

#include <inputbox.h>

Inheritance diagram for CL_InputBox:

Inheritance graph
[legend]
Collaboration diagram for CL_InputBox:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_InputBox (const CL_ComponentOptions &options, CL_Component *parent, CL_StyleManager *style=NULL)
 Construction:.

 CL_InputBox (const CL_Rect &pos, const std::string &text, CL_Component *parent, CL_StyleManager *style=NULL)
virtual ~CL_InputBox ()
const std::string& get_text () const
 Attributes:.

int get_length () const
const std::string& get_marked_text () const
bool has_marked_text () const
int get_selection_start () const
int get_selection_length () const
int get_max_length () const
bool in_password_mode () const
bool is_read_only () const
int get_cursor_position () const
bool is_edited () const
void set_text (const std::string &text)
 Operations:.

void set_max_length (int length)
void set_password_mode (bool enable=true)
void set_read_only (bool enable=true)
void select_all ()
void deselect ()
void set_selection (int start, int length)
void set_cursor_position (int pos)
void clear ()
void backspace ()
void del ()
void cut ()
void move_cursor (int delta, bool mark=false)
void move_cursor_word (int delta, bool mark=false)
void home (bool mark=false)
void end (bool mark=false)
void set_edited (bool on=true)
CL_Signal_v1<const std::string &>& sig_changed ()
 Signals:.

CL_Signal_v1<const std::string &>& sig_return_pressed ()
 param: const std::string & - Contains the new string.


Private Methods

 CL_InputBox (const CL_InputBox &copy)
 param: const std::string & - Contains the inputfield string.Implementation:.


Private Attributes

class CL_InputBox_Genericimpl
 Implementation:.


Detailed Description

clanGUI="Controls".

Definition at line 16 of file inputbox.h.


Constructor & Destructor Documentation

CL_InputBox::CL_InputBox ( const CL_ComponentOptions & options,
CL_Component * parent,
CL_StyleManager * style = NULL )
 

Construction:.

CL_InputBox::CL_InputBox ( const CL_Rect & pos,
const std::string & text,
CL_Component * parent,
CL_StyleManager * style = NULL )
 

virtual CL_InputBox::~CL_InputBox ( ) [virtual]
 

CL_InputBox::CL_InputBox ( const CL_InputBox & copy ) [inline, private]
 

param: const std::string & - Contains the inputfield string.Implementation:.

Definition at line 148 of file inputbox.h.


Member Function Documentation

void CL_InputBox::backspace ( )
 

void CL_InputBox::clear ( )
 

void CL_InputBox::cut ( )
 

void CL_InputBox::del ( )
 

void CL_InputBox::deselect ( )
 

void CL_InputBox::end ( bool mark = false )
 

int CL_InputBox::get_cursor_position ( ) const
 

int CL_InputBox::get_length ( ) const
 

const std::string& CL_InputBox::get_marked_text ( ) const
 

int CL_InputBox::get_max_length ( ) const
 

int CL_InputBox::get_selection_length ( ) const
 

int CL_InputBox::get_selection_start ( ) const
 

const std::string & CL_InputBox::get_text ( ) const
 

Attributes:.

bool CL_InputBox::has_marked_text ( ) const
 

void CL_InputBox::home ( bool mark = false )
 

bool CL_InputBox::in_password_mode ( ) const
 

bool CL_InputBox::is_edited ( ) const
 

bool CL_InputBox::is_read_only ( ) const
 

void CL_InputBox::move_cursor ( int delta,
bool mark = false )
 

void CL_InputBox::move_cursor_word ( int delta,
bool mark = false )
 

void CL_InputBox::select_all ( )
 

void CL_InputBox::set_cursor_position ( int pos )
 

void CL_InputBox::set_edited ( bool on = true )
 

void CL_InputBox::set_max_length ( int length )
 

void CL_InputBox::set_password_mode ( bool enable = true )
 

void CL_InputBox::set_read_only ( bool enable = true )
 

void CL_InputBox::set_selection ( int start,
int length )
 

void CL_InputBox::set_text ( const std::string & text )
 

Operations:.

CL_Signal_v1< const std::string &> & CL_InputBox::sig_changed ( )
 

Signals:.

CL_Signal_v1< const std::string &> & CL_InputBox::sig_return_pressed ( )
 

param: const std::string & - Contains the new string.


Member Data Documentation

class CL_InputBox_Generic* CL_InputBox::impl [private]
 

Implementation:.

Reimplemented from CL_Component.

Definition at line 149 of file inputbox.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:01 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001