summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-entry.h
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2018-01-10 17:49:32 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2018-02-02 13:56:56 +0100
commit9072e988194a36186bd98db844b8285e3f37069a (patch)
tree0e2781594d749a6b6ddb55ff99e5f093d6bd89eb /src/fe-text/gui-entry.h
parent0f1b3873fe5b99cf8af9bc58d1a982dd5f0f66bd (diff)
downloadirssi-9072e988194a36186bd98db844b8285e3f37069a.zip
change color -> extents (malloc based)
Diffstat (limited to 'src/fe-text/gui-entry.h')
-rw-r--r--src/fe-text/gui-entry.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/fe-text/gui-entry.h b/src/fe-text/gui-entry.h
index 18cc5a4d..dff860d3 100644
--- a/src/fe-text/gui-entry.h
+++ b/src/fe-text/gui-entry.h
@@ -9,7 +9,7 @@ typedef struct {
typedef struct {
int text_len, text_alloc; /* as shorts, not chars */
unichar *text;
- int *colors;
+ char **extents;
GSList *kill_ring;
@@ -27,6 +27,7 @@ typedef struct {
unsigned int previous_append_next_kill:1;
unsigned int append_next_kill:1;
unsigned int yank_preceded:1;
+ unsigned int uses_extents:1;
} GUI_ENTRY_REC;
typedef enum {
@@ -78,6 +79,14 @@ void gui_entry_move_words(GUI_ENTRY_REC *entry, int count, int to_space);
void gui_entry_redraw(GUI_ENTRY_REC *entry);
-void gui_entry_set_color(GUI_ENTRY_REC *entry, int pos, int len, int color);
+void gui_entry_set_extent(GUI_ENTRY_REC *entry, int pos, const char *text);
+void gui_entry_set_extents(GUI_ENTRY_REC *entry, int pos, int len, const char *left, const char *right);
+void gui_entry_clear_extents(GUI_ENTRY_REC *entry, int pos, int len);
+char *gui_entry_get_extent(GUI_ENTRY_REC *entry, int pos);
+GSList *gui_entry_get_text_and_extents(GUI_ENTRY_REC *entry);
+void gui_entry_set_text_and_extents(GUI_ENTRY_REC *entry, GSList *list);
+
+void gui_entry_init(void);
+void gui_entry_deinit(void);
#endif