mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: New HighlightOut::Put overload
git-svn-id: svn://ultimatepp.org/upp/trunk@11010 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e528b59fb9
commit
5802661b40
2 changed files with 8 additions and 2 deletions
|
|
@ -75,13 +75,18 @@ void HighlightOutput::SetInk(int pos, int count, Color ink)
|
|||
v[pos++].ink = ink;
|
||||
}
|
||||
|
||||
void HighlightOutput::Put(int count, const HlStyle& ink, const HlStyle& paper)
|
||||
void HighlightOutput::Put(int count, const HlStyle& ink, Color paper)
|
||||
{
|
||||
Set(pos, count, ink);
|
||||
SetPaper(pos, count, paper.color);
|
||||
SetPaper(pos, count, paper);
|
||||
pos += count;
|
||||
}
|
||||
|
||||
void HighlightOutput::Put(int count, const HlStyle& ink, const HlStyle& paper)
|
||||
{
|
||||
Put(count, ink, paper.color);
|
||||
}
|
||||
|
||||
const wchar *HighlightOutput::CString(const wchar *p)
|
||||
{
|
||||
Put(hl_style[INK_CONST_STRING]);
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ public:
|
|||
void SetInk(int pos, int count, Color ink);
|
||||
void SetFlags(int count, word flags) { SetFlags(pos, count, flags); }
|
||||
void Put(int count, const HlStyle& ink) { Set(pos, count, ink); pos += count; }
|
||||
void Put(int count, const HlStyle& ink, Color paper);
|
||||
void Put(int count, const HlStyle& ink, const HlStyle& paper);
|
||||
void Put(const HlStyle& ink) { Put(1, ink); }
|
||||
void Put(const HlStyle& ink, word flags) { Put(1, ink); v[pos - 1].flags = flags; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue