Skip to content

Commit

Permalink
ui/Window: add cchar_t overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Sep 6, 2024
1 parent bbc18e5 commit 8ffa8f4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/ui/Window.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,24 @@ struct Window {
mvwhline(w, p.y, p.x, ch, width);
}

#if NCURSES_WIDECHAR
void Char(const cchar_t *ch) const noexcept {
wadd_wch(w, ch);
}

void Char(Point p, const cchar_t *ch) const noexcept {
mvwadd_wch(w, p.y, p.x, ch);
}

void HLine(unsigned width, const cchar_t *ch) const noexcept {
whline_set(w, ch, width);
}

void HLine(Point p, unsigned width, const cchar_t *ch) const noexcept {
mvwhline_set(w, p.y, p.x, ch, width);
}
#endif // NCURSES_WIDECHAR

void RefreshNoOut() const noexcept {
wnoutrefresh(w);
}
Expand Down

0 comments on commit 8ffa8f4

Please sign in to comment.