summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-entry.h
blob: ff8f3ef5b42d159e6fb2f409eb66976e79879209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __GUI_ENTRY_H
#define __GUI_ENTRY_H

void gui_entry_set_prompt(const char *str);

/* permanent prompt can't be overwritten with gui_entry_set_prompt() */
void gui_entry_set_perm_prompt(const char *str);
void gui_entry_remove_perm_prompt(void);
void gui_entry_set_hidden(int hidden);

void gui_entry_set_text(const char *str);
char *gui_entry_get_text(void);

void gui_entry_insert_text(const char *str);
void gui_entry_insert_char(char chr);

void gui_entry_erase(int size);
void gui_entry_erase_word(void);
void gui_entry_erase_next_word(void);

int gui_entry_get_pos(void);
void gui_entry_set_pos(int pos);
void gui_entry_move_pos(int pos);
void gui_entry_move_words(int count);

void gui_entry_redraw(void);

void gui_entry_init(void);
void gui_entry_deinit(void);

#endif