80 |
#define MSG_TYPE_INFO 4 |
#define MSG_TYPE_INFO 4 |
81 |
#define MSG_TYPE_MSG 8 |
#define MSG_TYPE_MSG 8 |
82 |
#define MSG_TYPE_HIGHLIGHT 16 |
#define MSG_TYPE_HIGHLIGHT 16 |
83 |
|
#define MSG_TYPE_NOLOG 32 |
84 |
|
|
85 |
#define gui_printf_color(buffer, color, fmt, argz...) \ |
#define gui_printf_color(buffer, color, fmt, argz...) \ |
86 |
gui_printf_color_type(buffer, MSG_TYPE_INFO, color, fmt, ##argz) |
gui_printf_color_type(buffer, MSG_TYPE_INFO, color, fmt, ##argz) |
88 |
#define gui_printf(buffer, fmt, argz...) \ |
#define gui_printf(buffer, fmt, argz...) \ |
89 |
gui_printf_color_type(buffer, MSG_TYPE_INFO, -1, fmt, ##argz) |
gui_printf_color_type(buffer, MSG_TYPE_INFO, -1, fmt, ##argz) |
90 |
|
|
91 |
|
#define gui_printf_nolog(buffer, fmt, argz...) \ |
92 |
|
gui_printf_color_type(buffer, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz) |
93 |
|
|
94 |
typedef struct t_gui_message t_gui_message; |
typedef struct t_gui_message t_gui_message; |
95 |
|
|
96 |
struct t_gui_message |
struct t_gui_message |
108 |
{ |
{ |
109 |
int length; /* length of the line (in char) */ |
int length; /* length of the line (in char) */ |
110 |
int length_align; /* alignment length (time or time/nick) */ |
int length_align; /* alignment length (time or time/nick) */ |
111 |
|
int log_write; /* = 1 if line will be written to log */ |
112 |
int line_with_message; /* line contains a message from a user? */ |
int line_with_message; /* line contains a message from a user? */ |
113 |
int line_with_highlight; /* line contains highlight */ |
int line_with_highlight; /* line contains highlight */ |
114 |
t_gui_message *messages; /* messages for the line */ |
t_gui_message *messages; /* messages for the line */ |