mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
change color -> extents (malloc based)
This commit is contained in:
parent
0f1b3873fe
commit
9072e98819
4 changed files with 542 additions and 103 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue