diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-02-05 22:28:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-05 22:28:08 +0100 |
commit | 81831806132608d5111ffb24efd2a2469c62d197 (patch) | |
tree | ee6866ed202d1c0d021175042f0a6ba51225b1d6 /src/fe-text/gui-entry.h | |
parent | cfcc021c81eea84bd982a64764f62e163128acf3 (diff) | |
parent | 2185c4ddb36e1b53548674c2e6ebf95448f2c587 (diff) | |
download | irssi-81831806132608d5111ffb24efd2a2469c62d197.zip |
Merge pull request #764 from GinjaNinja32/colorful-input
Add color support for input bar
Diffstat (limited to 'src/fe-text/gui-entry.h')
-rw-r--r-- | src/fe-text/gui-entry.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fe-text/gui-entry.h b/src/fe-text/gui-entry.h index 000c5f03..dff860d3 100644 --- a/src/fe-text/gui-entry.h +++ b/src/fe-text/gui-entry.h @@ -9,6 +9,7 @@ typedef struct { typedef struct { int text_len, text_alloc; /* as shorts, not chars */ unichar *text; + char **extents; GSList *kill_ring; @@ -26,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 { @@ -77,5 +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_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 |