comparison console/libgnt/gnttextview.h @ 15172:a00712d0522e

[gaim-migrate @ 17957] Show 'ABC is typing...' in the conversation window for typing notification. seanegan suggested this, and it sounded like an interesting thing to do. The change in gnttextview.c will need some more work if it is to be used for some other task, but its current use should be OK. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 11 Dec 2006 06:02:15 +0000
parents c01f62c83647
children 1c8f1dc50685
comparison
equal deleted inserted replaced
15171:b7f83eba6029 15172:a00712d0522e
25 { 25 {
26 GntWidget parent; 26 GntWidget parent;
27 27
28 GString *string; 28 GString *string;
29 GList *list; /* List of GntTextLine */ 29 GList *list; /* List of GntTextLine */
30
31 GList *tags; /* A list of tags */
30 }; 32 };
31 33
32 typedef enum 34 typedef enum
33 { 35 {
34 GNT_TEXT_FLAG_NORMAL = 0, 36 GNT_TEXT_FLAG_NORMAL = 0,
60 /* scroll > 0 means scroll up, < 0 means scroll down, == 0 means scroll to the end */ 62 /* scroll > 0 means scroll up, < 0 means scroll down, == 0 means scroll to the end */
61 void gnt_text_view_scroll(GntTextView *view, int scroll); 63 void gnt_text_view_scroll(GntTextView *view, int scroll);
62 64
63 void gnt_text_view_append_text_with_flags(GntTextView *view, const char *text, GntTextFormatFlags flags); 65 void gnt_text_view_append_text_with_flags(GntTextView *view, const char *text, GntTextFormatFlags flags);
64 66
67 void gnt_text_view_append_text_with_tag(GntTextView *view, const char *text, GntTextFormatFlags flags, const char *tag);
68
65 /* Move the cursor to the beginning of the next line and resets text-attributes. 69 /* Move the cursor to the beginning of the next line and resets text-attributes.
66 * It first completes the current line with the current text-attributes. */ 70 * It first completes the current line with the current text-attributes. */
67 void gnt_text_view_next_line(GntTextView *view); 71 void gnt_text_view_next_line(GntTextView *view);
68 72
69 chtype gnt_text_format_flag_to_chtype(GntTextFormatFlags flags); 73 chtype gnt_text_format_flag_to_chtype(GntTextFormatFlags flags);
72 76
73 int gnt_text_view_get_lines_below(GntTextView *view); 77 int gnt_text_view_get_lines_below(GntTextView *view);
74 78
75 int gnt_text_view_get_lines_above(GntTextView *view); 79 int gnt_text_view_get_lines_above(GntTextView *view);
76 80
81 /* If text is NULL, then the tag is removed. */
82 int gnt_text_view_tag_change(GntTextView *view, const char *name, const char *text, gboolean all);
83
77 G_END_DECLS 84 G_END_DECLS
78 85
79 #endif /* GNT_TEXT_VIEW_H */ 86 #endif /* GNT_TEXT_VIEW_H */