forked from PsychoticNinja/irssi
string. gui_printtext() now works like printtext_string() so %s won't accidentally crash it. /SET prompt can now have %formats. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1273 dbcabf3a-b0e7-0310-adc4-f8d773084564
39 lines
671 B
C
39 lines
671 B
C
#ifndef __GUI_PRINTTEXT_H
|
|
#define __GUI_PRINTTEXT_H
|
|
|
|
#include "gui-windows.h"
|
|
|
|
enum
|
|
{
|
|
BLACK = 0,
|
|
BLUE,
|
|
GREEN,
|
|
CYAN,
|
|
RED,
|
|
MAGENTA,
|
|
YELLOW,
|
|
WHITE,
|
|
BBLACK,
|
|
BBLUE,
|
|
BGREEN,
|
|
BCYAN,
|
|
BRED,
|
|
BMAGENTA,
|
|
BYELLOW,
|
|
BWHITE,
|
|
NUM_COLORS
|
|
};
|
|
|
|
extern int mirc_colors[];
|
|
|
|
void gui_printtext_init(void);
|
|
void gui_printtext_deinit(void);
|
|
|
|
void gui_window_line_append(GUI_WINDOW_REC *gui, const char *str, int len);
|
|
void gui_window_line_remove(WINDOW_REC *window, LINE_REC *line, int redraw);
|
|
void gui_window_line_text_free(GUI_WINDOW_REC *gui, LINE_REC *line);
|
|
|
|
void gui_printtext(int xpos, int ypos, const char *str);
|
|
|
|
#endif
|