6 int xpos, ypos, width; /* entry position in screen */
7 int pos, scrstart, scrpos; /* cursor position */
8 int hidden; /* print the chars as spaces in input line (useful for passwords) */
13 int redraw_needed_from;
17 extern GUI_ENTRY_REC *active_entry;
19 GUI_ENTRY_REC *gui_entry_create(int xpos, int ypos, int width, int utf8);
20 void gui_entry_destroy(GUI_ENTRY_REC *entry);
22 void gui_entry_move(GUI_ENTRY_REC *entry, int xpos, int ypos, int width);
23 void gui_entry_set_active(GUI_ENTRY_REC *entry);
25 void gui_entry_set_prompt(GUI_ENTRY_REC *entry, const char *str);
26 void gui_entry_set_hidden(GUI_ENTRY_REC *entry, int hidden);
27 void gui_entry_set_utf8(GUI_ENTRY_REC *entry, int utf8);
29 void gui_entry_set_text(GUI_ENTRY_REC *entry, const char *str);
30 char *gui_entry_get_text(GUI_ENTRY_REC *entry);
32 void gui_entry_insert_text(GUI_ENTRY_REC *entry, const char *str);
33 void gui_entry_insert_char(GUI_ENTRY_REC *entry, char chr);
35 void gui_entry_erase(GUI_ENTRY_REC *entry, int size);
36 void gui_entry_erase_word(GUI_ENTRY_REC *entry, int to_space);
37 void gui_entry_erase_next_word(GUI_ENTRY_REC *entry, int to_space);
39 int gui_entry_get_pos(GUI_ENTRY_REC *entry);
40 void gui_entry_set_pos(GUI_ENTRY_REC *entry, int pos);
41 void gui_entry_move_pos(GUI_ENTRY_REC *entry, int pos);
42 void gui_entry_move_words(GUI_ENTRY_REC *entry, int count, int to_space);
44 void gui_entry_redraw(GUI_ENTRY_REC *entry);