#include <glui.h>
Inherits GLUI_Control.
Public Member Functions | |
GLUI_TextBox (GLUI_Node *parent, GLUI_String &live_var, bool scroll=false, int id=-1, GLUI_CB callback=GLUI_CB()) | |
GLUI_TextBox (GLUI_Node *parent, bool scroll=false, int id=-1, GLUI_CB callback=GLUI_CB()) | |
int | mouse_down_handler (int local_x, int local_y) |
int | mouse_up_handler (int local_x, int local_y, bool inside) |
int | mouse_held_down_handler (int local_x, int local_y, bool inside) |
int | key_handler (unsigned char key, int modifiers) |
int | special_handler (int key, int modifiers) |
void | activate (int how) |
void | deactivate (void) |
void | enable (void) |
void | disable (void) |
void | draw (int x, int y) |
int | mouse_over (int state, int x, int y) |
int | get_box_width () |
int | find_word_break (int start, int direction) |
int | substring_width (int start, int end, int initial_width=0) |
void | clear_substring (int start, int end) |
int | find_insertion_pt (int x, int y) |
int | update_substring_bounds (void) |
void | update_and_draw_text (void) |
void | draw_text (int x, int y) |
void | draw_insertion_pt (void) |
void | update_x_offsets (void) |
void | update_size (void) |
void | set_text (const char *text) |
const char * | get_text (void) |
void | dump (FILE *out, char *text) |
void | set_tab_w (int w) |
void | set_start_line (int l) |
bool | wants_tabs (void) const |
Static Public Member Functions | |
static void | scrollbar_callback (GLUI_Control *) |
Public Attributes | |
GLUI_String | orig_text |
int | insertion_pt |
int | substring_start |
int | substring_end |
int | sel_start |
int | sel_end |
int | last_insertion_pt |
int | debug |
int | draw_text_only |
int | tab_width |
int | start_line |
int | num_lines |
int | curr_line |
int | visible_lines |
int | insert_x |
int | insert_y |
int | keygoal_x |
GLUI_Scrollbar * | scrollbar |
Protected Member Functions | |
void | common_init () |
void | common_construct (GLUI_Node *parent, GLUI_String *live_var, bool scroll, int id, GLUI_CB callback) |
GLUI_TextBox::GLUI_TextBox | ( | GLUI_Node * | parent, | |
GLUI_String & | live_var, | |||
bool | scroll = false , |
|||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
GLUI_TextBox::GLUI_TextBox | ( | GLUI_Node * | parent, | |
bool | scroll = false , |
|||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
void GLUI_TextBox::activate | ( | int | how | ) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_TextBox::clear_substring | ( | int | start, | |
int | end | |||
) |
void GLUI_TextBox::common_construct | ( | GLUI_Node * | parent, | |
GLUI_String * | live_var, | |||
bool | scroll, | |||
int | id, | |||
GLUI_CB | callback | |||
) | [protected] |
void GLUI_TextBox::common_init | ( | void | ) | [inline, protected] |
void GLUI_TextBox::deactivate | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_TextBox::disable | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_TextBox::draw | ( | int | x, | |
int | y | |||
) | [virtual] |
Implements GLUI_Control.
void GLUI_TextBox::draw_insertion_pt | ( | void | ) |
void GLUI_TextBox::draw_text | ( | int | x, | |
int | y | |||
) |
void GLUI_TextBox::dump | ( | FILE * | out, | |
char * | text | |||
) |
void GLUI_TextBox::enable | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_TextBox::find_insertion_pt | ( | int | x, | |
int | y | |||
) |
int GLUI_TextBox::find_word_break | ( | int | start, | |
int | direction | |||
) |
int GLUI_TextBox::get_box_width | ( | ) |
const char* GLUI_TextBox::get_text | ( | void | ) | [inline] |
int GLUI_TextBox::key_handler | ( | unsigned char | key, | |
int | modifiers | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_TextBox::mouse_down_handler | ( | int | local_x, | |
int | local_y | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_TextBox::mouse_held_down_handler | ( | int | local_x, | |
int | local_y, | |||
bool | inside | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_TextBox::mouse_over | ( | int | state, | |
int | x, | |||
int | y | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_TextBox::mouse_up_handler | ( | int | local_x, | |
int | local_y, | |||
bool | inside | |||
) | [virtual] |
Reimplemented from GLUI_Control.
static void GLUI_TextBox::scrollbar_callback | ( | GLUI_Control * | ) | [static] |
void GLUI_TextBox::set_start_line | ( | int | l | ) | [inline] |
void GLUI_TextBox::set_tab_w | ( | int | w | ) | [inline] |
void GLUI_TextBox::set_text | ( | const char * | t | ) | [virtual] |
Writes live variable
Reimplemented from GLUI_Control.
int GLUI_TextBox::special_handler | ( | int | key, | |
int | modifiers | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_TextBox::substring_width | ( | int | start, | |
int | end, | |||
int | initial_width = 0 | |||
) |
void GLUI_TextBox::update_and_draw_text | ( | void | ) |
void GLUI_TextBox::update_size | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_TextBox::update_substring_bounds | ( | void | ) |
void GLUI_TextBox::update_x_offsets | ( | void | ) |
bool GLUI_TextBox::wants_tabs | ( | void | ) | const [inline, virtual] |
Reimplemented from GLUI_Control.