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

CL_InputBox_Generic Class Reference

#include <inputbox_generic.h>

Collaboration diagram for CL_InputBox_Generic:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_InputBox_Generic (CL_InputBox *self, const CL_ComponentOptions &options, CL_StyleManager *style)
 ~CL_InputBox_Generic ()
void on_key_down (CL_Component *comp, CL_InputDevice *device, CL_Key key)
void on_key_up (CL_Component *comp, CL_InputDevice *device, CL_Key key)
void on_mouse_move (CL_Component *comp, CL_InputDevice *device, int x, int y)
void set_text (const std::string &text)
const std::string& get_marked_text () const
void set_max_length (int length)
void select_all ()
void deselect ()
void set_selection (int start, int length)
void set_cursor_position (int pos)
void backspace ()
void del ()
void cut ()
void move_cursor (int delta, bool mark)
void move_cursor_word (int delta, bool mark)
void home (bool mark)
void end (bool mark)
int get_selection_start ()
int get_selection_length ()

Public Attributes

CL_InputBoxinputbox
bool password_mode
bool read_only
bool edited
int cursor_position
int max_length
std::string text
CL_Signal_v1<const std::string &> sig_changed
CL_Signal_v1<const std::string &> sig_return_pressed
CL_Slot slot_key_down
CL_Slot slot_key_up
CL_Slot slot_mouse_move

Static Public Methods

CL_ComponentOptions create_options (const CL_Rect &pos, const std::string &text, bool password_mode, bool readonly, int maxlength)

Private Methods

void check_selection ()
void update_text (CL_Key key)
int get_mouse_position (int x, int y)

Private Attributes

bool selecting
bool mouse_selecting
int selection_start
int selection_end
bool ctrl_down
bool shift_down

Constructor & Destructor Documentation

CL_InputBox_Generic::CL_InputBox_Generic ( CL_InputBox * self,
const CL_ComponentOptions & options,
CL_StyleManager * style )
 

CL_InputBox_Generic::~CL_InputBox_Generic ( ) [inline]
 

Definition at line 25 of file inputbox_generic.h.


Member Function Documentation

void CL_InputBox_Generic::backspace ( )
 

void CL_InputBox_Generic::check_selection ( ) [private]
 

CL_ComponentOptions CL_InputBox_Generic::create_options ( const CL_Rect & pos,
const std::string & text,
bool password_mode,
bool readonly,
int maxlength ) [static]
 

void CL_InputBox_Generic::cut ( )
 

void CL_InputBox_Generic::del ( )
 

void CL_InputBox_Generic::deselect ( )
 

void CL_InputBox_Generic::end ( bool mark )
 

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

int CL_InputBox_Generic::get_mouse_position ( int x,
int y ) [private]
 

int CL_InputBox_Generic::get_selection_length ( )
 

int CL_InputBox_Generic::get_selection_start ( )
 

void CL_InputBox_Generic::home ( bool mark )
 

void CL_InputBox_Generic::move_cursor ( int delta,
bool mark )
 

void CL_InputBox_Generic::move_cursor_word ( int delta,
bool mark )
 

void CL_InputBox_Generic::on_key_down ( CL_Component * comp,
CL_InputDevice * device,
CL_Key key )
 

void CL_InputBox_Generic::on_key_up ( CL_Component * comp,
CL_InputDevice * device,
CL_Key key )
 

void CL_InputBox_Generic::on_mouse_move ( CL_Component * comp,
CL_InputDevice * device,
int x,
int y )
 

void CL_InputBox_Generic::select_all ( )
 

void CL_InputBox_Generic::set_cursor_position ( int pos )
 

void CL_InputBox_Generic::set_max_length ( int length )
 

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

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

void CL_InputBox_Generic::update_text ( CL_Key key ) [private]
 


Member Data Documentation

bool CL_InputBox_Generic::ctrl_down [private]
 

Definition at line 74 of file inputbox_generic.h.

int CL_InputBox_Generic::cursor_position
 

Definition at line 34 of file inputbox_generic.h.

bool CL_InputBox_Generic::edited
 

Definition at line 32 of file inputbox_generic.h.

CL_InputBox* CL_InputBox_Generic::inputbox
 

Definition at line 27 of file inputbox_generic.h.

int CL_InputBox_Generic::max_length
 

Definition at line 36 of file inputbox_generic.h.

bool CL_InputBox_Generic::mouse_selecting [private]
 

Definition at line 70 of file inputbox_generic.h.

bool CL_InputBox_Generic::password_mode
 

Definition at line 29 of file inputbox_generic.h.

bool CL_InputBox_Generic::read_only
 

Definition at line 30 of file inputbox_generic.h.

bool CL_InputBox_Generic::selecting [private]
 

Definition at line 69 of file inputbox_generic.h.

int CL_InputBox_Generic::selection_end [private]
 

Definition at line 72 of file inputbox_generic.h.

int CL_InputBox_Generic::selection_start [private]
 

Definition at line 71 of file inputbox_generic.h.

bool CL_InputBox_Generic::shift_down [private]
 

Definition at line 75 of file inputbox_generic.h.

CL_Signal_v1<const std::string &> CL_InputBox_Generic::sig_changed
 

Definition at line 40 of file inputbox_generic.h.

CL_Signal_v1<const std::string &> CL_InputBox_Generic::sig_return_pressed
 

Definition at line 41 of file inputbox_generic.h.

CL_Slot CL_InputBox_Generic::slot_key_down
 

Definition at line 43 of file inputbox_generic.h.

CL_Slot CL_InputBox_Generic::slot_key_up
 

Definition at line 44 of file inputbox_generic.h.

CL_Slot CL_InputBox_Generic::slot_mouse_move
 

Definition at line 45 of file inputbox_generic.h.

std::string CL_InputBox_Generic::text
 

Definition at line 38 of file inputbox_generic.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