Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

BC_TextBox Class Reference

#include <bctextbox.h>

Inheritance diagram for BC_TextBox:

BC_SubWindow BC_WindowBase BC_RelocatableWidget BC_FileBoxDirectoryText BC_FileBoxFilterText BC_FileBoxTextBox BC_PopupTextBoxText BC_ScrollTextBoxText BC_TumbleTextBoxText List of all members.

Public Member Functions

 BC_TextBox (int x, int y, int w, int rows, char *text, int has_border=1, int font=MEDIUMFONT)
 BC_TextBox (int x, int y, int w, int rows, int64_t text, int has_border=1, int font=MEDIUMFONT)
 BC_TextBox (int x, int y, int w, int rows, int text, int has_border=1, int font=MEDIUMFONT)
 BC_TextBox (int x, int y, int w, int rows, float text, int has_border=1, int font=MEDIUMFONT, int precision=4)
virtual ~BC_TextBox ()
virtual int handle_event ()
virtual int motion_event ()
int update (char *text)
int update (int64_t value)
int update (float value)
void disable ()
void enable ()
int get_enabled ()
int initialize ()
int focus_in_event ()
int focus_out_event ()
int cursor_enter_event ()
int cursor_leave_event ()
int cursor_motion_event ()
virtual int button_press_event ()
int button_release_event ()
int repeat_event (int64_t repeat_id)
int keypress_event ()
int activate ()
int deactivate ()
char * get_text ()
int get_text_rows ()
void set_text_row (int row)
int get_text_row ()
int reposition_window (int x, int y, int w=-1, int rows=-1)
int uses_text ()
void set_precision (int precision)
void set_keypress_draw (int value)
int get_ibeam_letter ()
void set_ibeam_letter (int number, int redraw=1)
int get_last_keypress ()
void set_separators (char *separators)
int select_whole_text (int select)
void cycle_textboxes (int amout)

Static Public Member Functions

static int calculate_h (BC_WindowBase *gui, int font, int has_border, int rows)
static int calculate_row_h (int rows, BC_WindowBase *parent_window, int has_border=1, int font=MEDIUMFONT)
static int pixels_to_rows (BC_WindowBase *window, int font, int pixels)

Private Member Functions

int reset_parameters (int rows, int has_border, int font)
void draw ()
void draw_border ()
void draw_cursor ()
void copy_selection (int clipboard_num)
void paste_selection (int clipboard_num)
void delete_selection (int letter1, int letter2, int text_len)
void insert_text (char *string)
void do_separators (int ibeam_left)
void get_ibeam_position (int &x, int &y)
void find_ibeam (int dispatch_event)
void select_word (int &letter1, int &letter2, int ibeam_letter)
int get_cursor_letter (int cursor_x, int cursor_y)
int get_row_h (int rows)
void default_keypress (int &dispatch_event, int &result)

Private Attributes

int text_x
int text_y
int ibeam_x
int ibeam_y
int ibeam_letter
int highlight_letter1
int highlight_letter2
int highlight_letter3
int highlight_letter4
int text_x1
int text_start
int text_end
int text_selected
int word_selected
int text_ascent
int text_descent
int text_height
int left_margin
int right_margin
int top_margin
int bottom_margin
int has_border
int font
int rows
int highlighted
int high_color
int back_color
int background_color
char text [BCTEXTLEN]
char text_row [BCTEXTLEN]
char temp_string [2]
int active
int enabled
int precision
int keypress_draw
Timerskip_cursor
int last_keypress
char * separators

Detailed Description

Definition at line 14 of file bctextbox.h.


Constructor & Destructor Documentation

BC_TextBox::BC_TextBox int  x,
int  y,
int  w,
int  rows,
char *  text,
int  has_border = 1,
int  font = MEDIUMFONT
 

Definition at line 21 of file bctextbox.C.

BC_TextBox::BC_TextBox int  x,
int  y,
int  w,
int  rows,
int64_t  text,
int  has_border = 1,
int  font = MEDIUMFONT
 

Definition at line 35 of file bctextbox.C.

BC_TextBox::BC_TextBox int  x,
int  y,
int  w,
int  rows,
int  text,
int  has_border = 1,
int  font = MEDIUMFONT
 

Definition at line 65 of file bctextbox.C.

BC_TextBox::BC_TextBox int  x,
int  y,
int  w,
int  rows,
float  text,
int  has_border = 1,
int  font = MEDIUMFONT,
int  precision = 4
 

Definition at line 49 of file bctextbox.C.

BC_TextBox::~BC_TextBox  )  [virtual]
 

Definition at line 79 of file bctextbox.C.


Member Function Documentation

int BC_TextBox::activate  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 601 of file bctextbox.C.

int BC_TextBox::button_press_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Reimplemented in BC_TumbleTextBoxText.

Definition at line 488 of file bctextbox.C.

int BC_TextBox::button_release_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 546 of file bctextbox.C.

int BC_TextBox::calculate_h BC_WindowBase gui,
int  font,
int  has_border,
int  rows
[static]
 

Definition at line 153 of file bctextbox.C.

int BC_TextBox::calculate_row_h int  rows,
BC_WindowBase parent_window,
int  has_border = 1,
int  font = MEDIUMFONT
[static]
 

Definition at line 240 of file bctextbox.C.

void BC_TextBox::copy_selection int  clipboard_num  )  [private]
 

Definition at line 1459 of file bctextbox.C.

int BC_TextBox::cursor_enter_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 458 of file bctextbox.C.

int BC_TextBox::cursor_leave_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 475 of file bctextbox.C.

int BC_TextBox::cursor_motion_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 560 of file bctextbox.C.

void BC_TextBox::cycle_textboxes int  amout  ) 
 

Reimplemented from BC_WindowBase.

Definition at line 693 of file bctextbox.C.

int BC_TextBox::deactivate  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 610 of file bctextbox.C.

void BC_TextBox::default_keypress int &  dispatch_event,
int &  result
[private]
 

Definition at line 650 of file bctextbox.C.

void BC_TextBox::delete_selection int  letter1,
int  letter2,
int  text_len
[private]
 

Definition at line 1207 of file bctextbox.C.

void BC_TextBox::disable  ) 
 

Definition at line 203 of file bctextbox.C.

void BC_TextBox::do_separators int  ibeam_left  )  [private]
 

Definition at line 1245 of file bctextbox.C.

void BC_TextBox::draw  )  [private]
 

Definition at line 335 of file bctextbox.C.

void BC_TextBox::draw_border  )  [private]
 

Definition at line 296 of file bctextbox.C.

void BC_TextBox::draw_cursor  )  [private]
 

Definition at line 321 of file bctextbox.C.

void BC_TextBox::enable  ) 
 

Definition at line 216 of file bctextbox.C.

void BC_TextBox::find_ibeam int  dispatch_event  )  [private]
 

Definition at line 1348 of file bctextbox.C.

int BC_TextBox::focus_in_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 446 of file bctextbox.C.

int BC_TextBox::focus_out_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 452 of file bctextbox.C.

int BC_TextBox::get_cursor_letter int  cursor_x,
int  cursor_y
[private]
 

Definition at line 1387 of file bctextbox.C.

int BC_TextBox::get_enabled  ) 
 

Definition at line 228 of file bctextbox.C.

int BC_TextBox::get_ibeam_letter  ) 
 

Definition at line 1495 of file bctextbox.C.

void BC_TextBox::get_ibeam_position int &  x,
int &  y
[private]
 

Definition at line 1300 of file bctextbox.C.

int BC_TextBox::get_last_keypress  ) 
 

Definition at line 1490 of file bctextbox.C.

int BC_TextBox::get_row_h int  rows  )  [private]
 

Definition at line 268 of file bctextbox.C.

char * BC_TextBox::get_text  ) 
 

Definition at line 251 of file bctextbox.C.

int BC_TextBox::get_text_row  ) 
 

Definition at line 1343 of file bctextbox.C.

int BC_TextBox::get_text_rows  ) 
 

Definition at line 256 of file bctextbox.C.

virtual int BC_TextBox::handle_event  )  [inline, virtual]
 

Reimplemented in BC_FileBoxTextBox, BC_FileBoxDirectoryText, BC_FileBoxFilterText, BC_ScrollTextBoxText, BC_PopupTextBoxText, and BC_TumbleTextBoxText.

Definition at line 49 of file bctextbox.h.

int BC_TextBox::initialize  )  [virtual]
 

Reimplemented from BC_SubWindow.

Definition at line 108 of file bctextbox.C.

void BC_TextBox::insert_text char *  string  )  [private]
 

Definition at line 1220 of file bctextbox.C.

int BC_TextBox::keypress_event  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 698 of file bctextbox.C.

virtual int BC_TextBox::motion_event  )  [inline, virtual]
 

Reimplemented in BC_ScrollTextBoxText.

Definition at line 51 of file bctextbox.h.

void BC_TextBox::paste_selection int  clipboard_num  )  [private]
 

Definition at line 1474 of file bctextbox.C.

int BC_TextBox::pixels_to_rows BC_WindowBase window,
int  font,
int  pixels
[static]
 

Definition at line 233 of file bctextbox.C.

int BC_TextBox::repeat_event int64_t  repeat_id  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 618 of file bctextbox.C.

int BC_TextBox::reposition_window int  x,
int  y,
int  w = -1,
int  rows = -1
 

Reimplemented from BC_WindowBase.

Definition at line 273 of file bctextbox.C.

int BC_TextBox::reset_parameters int  rows,
int  has_border,
int  font
[private]
 

Definition at line 84 of file bctextbox.C.

int BC_TextBox::select_whole_text int  select  ) 
 

Definition at line 670 of file bctextbox.C.

void BC_TextBox::select_word int &  letter1,
int &  letter2,
int  ibeam_letter
[private]
 

Definition at line 1437 of file bctextbox.C.

void BC_TextBox::set_ibeam_letter int  number,
int  redraw = 1
 

Definition at line 1500 of file bctextbox.C.

void BC_TextBox::set_keypress_draw int  value  ) 
 

Definition at line 1485 of file bctextbox.C.

void BC_TextBox::set_precision int  precision  ) 
 

Definition at line 163 of file bctextbox.C.

void BC_TextBox::set_separators char *  separators  ) 
 

Definition at line 1509 of file bctextbox.C.

void BC_TextBox::set_text_row int  row  ) 
 

Definition at line 1337 of file bctextbox.C.

int BC_TextBox::update float  value  ) 
 

Definition at line 194 of file bctextbox.C.

int BC_TextBox::update int64_t  value  ) 
 

Definition at line 184 of file bctextbox.C.

int BC_TextBox::update char *  text  ) 
 

Definition at line 168 of file bctextbox.C.

int BC_TextBox::uses_text  )  [virtual]
 

Reimplemented from BC_WindowBase.

Definition at line 1202 of file bctextbox.C.


Member Data Documentation

int BC_TextBox::active [private]
 

Definition at line 138 of file bctextbox.h.

int BC_TextBox::back_color [private]
 

Definition at line 135 of file bctextbox.h.

int BC_TextBox::background_color [private]
 

Definition at line 136 of file bctextbox.h.

int BC_TextBox::bottom_margin [private]
 

Definition at line 130 of file bctextbox.h.

int BC_TextBox::enabled [private]
 

Definition at line 139 of file bctextbox.h.

int BC_TextBox::font [private]
 

Definition at line 132 of file bctextbox.h.

int BC_TextBox::has_border [private]
 

Definition at line 131 of file bctextbox.h.

int BC_TextBox::high_color [private]
 

Definition at line 135 of file bctextbox.h.

int BC_TextBox::highlight_letter1 [private]
 

Definition at line 126 of file bctextbox.h.

int BC_TextBox::highlight_letter2 [private]
 

Definition at line 126 of file bctextbox.h.

int BC_TextBox::highlight_letter3 [private]
 

Definition at line 127 of file bctextbox.h.

int BC_TextBox::highlight_letter4 [private]
 

Definition at line 127 of file bctextbox.h.

int BC_TextBox::highlighted [private]
 

Definition at line 134 of file bctextbox.h.

int BC_TextBox::ibeam_letter [private]
 

Definition at line 125 of file bctextbox.h.

int BC_TextBox::ibeam_x [private]
 

Definition at line 123 of file bctextbox.h.

int BC_TextBox::ibeam_y [private]
 

Definition at line 123 of file bctextbox.h.

int BC_TextBox::keypress_draw [private]
 

Definition at line 141 of file bctextbox.h.

int BC_TextBox::last_keypress [private]
 

Definition at line 146 of file bctextbox.h.

int BC_TextBox::left_margin [private]
 

Definition at line 130 of file bctextbox.h.

int BC_TextBox::precision [private]
 

Definition at line 140 of file bctextbox.h.

int BC_TextBox::right_margin [private]
 

Definition at line 130 of file bctextbox.h.

int BC_TextBox::rows [private]
 

Definition at line 133 of file bctextbox.h.

char* BC_TextBox::separators [private]
 

Definition at line 147 of file bctextbox.h.

Timer* BC_TextBox::skip_cursor [private]
 

Definition at line 144 of file bctextbox.h.

char BC_TextBox::temp_string[2] [private]
 

Definition at line 137 of file bctextbox.h.

char BC_TextBox::text[BCTEXTLEN] [private]
 

Definition at line 137 of file bctextbox.h.

int BC_TextBox::text_ascent [private]
 

Definition at line 129 of file bctextbox.h.

int BC_TextBox::text_descent [private]
 

Definition at line 129 of file bctextbox.h.

int BC_TextBox::text_end [private]
 

Definition at line 128 of file bctextbox.h.

int BC_TextBox::text_height [private]
 

Definition at line 129 of file bctextbox.h.

char BC_TextBox::text_row[BCTEXTLEN] [private]
 

Definition at line 137 of file bctextbox.h.

int BC_TextBox::text_selected [private]
 

Definition at line 128 of file bctextbox.h.

int BC_TextBox::text_start [private]
 

Definition at line 128 of file bctextbox.h.

int BC_TextBox::text_x [private]
 

Definition at line 121 of file bctextbox.h.

int BC_TextBox::text_x1 [private]
 

Definition at line 128 of file bctextbox.h.

int BC_TextBox::text_y [private]
 

Definition at line 121 of file bctextbox.h.

int BC_TextBox::top_margin [private]
 

Definition at line 130 of file bctextbox.h.

int BC_TextBox::word_selected [private]
 

Definition at line 128 of file bctextbox.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:26:38 2006 for Guicast-svn by  doxygen 1.4.4