From f855deaf8b50e6ac6aa030d32769ac175ab75a2d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 16 Sep 2019 23:01:13 +1000 Subject: Refactor NCursesUI::Window to reduce the exposed methods This should make an alternate implementation simpler as less state has to be tracked. --- src/ncurses_ui.hh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/ncurses_ui.hh') diff --git a/src/ncurses_ui.hh b/src/ncurses_ui.hh index 3a7b406a..021a02e6 100644 --- a/src/ncurses_ui.hh +++ b/src/ncurses_ui.hh @@ -103,13 +103,8 @@ private: void mark_dirty(LineCount pos, LineCount count); void draw_line(Palette& palette, const DisplayLine& line, - ColumnCount col_index, - ColumnCount max_column, + ColumnCount width, const Face& default_face); - void add_str(StringView str); - void clear_to_end_of_line(); - void set_face(Palette& palette, Face face, const Face& default_face); - void set_background_color(Palette& palette, Face face); explicit operator bool() const { return win; } -- cgit v1.2.3