1 /* -*- c-basic-offset:2; tab-width:2; indent-tabs-mode:nil -*- */ 2 3 #ifndef __UI_DRAW_STR_H__ 4 #define __UI_DRAW_STR_H__ 5 6 #include <vt_char.h> 7 #include "ui_window.h" 8 #include "ui_font_manager.h" 9 #include "ui_color_manager.h" 10 11 int ui_draw_str(ui_window_t *window, ui_font_manager_t *font_man, ui_color_manager_t *color_man, 12 vt_char_t *chars, u_int num_chars, int x, int y, u_int height, u_int ascent, 13 int top_margin, int hide_underline, int underline_offset); 14 15 int ui_draw_str_to_eol(ui_window_t *window, ui_font_manager_t *font_man, 16 ui_color_manager_t *color_man, vt_char_t *chars, u_int num_chars, int x, 17 int y, u_int height, u_int ascent, int top_margin, 18 int hide_underline, int underline_offset); 19 20 u_int ui_calculate_vtchar_width(ui_font_t *font, vt_char_t *ch, int *draw_alone); 21 22 #endif 23