Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » [Feature] CodeEditor: HighlightOutput::Put, need another overload
[Feature] CodeEditor: HighlightOutput::Put, need another overload [message #47868] |
Fri, 14 April 2017 20:25 |
omari
Messages: 266 Registered: March 2010
|
Experienced Member |
|
|
in this overload :
void HighlightOutput::Put(int count, const HlStyle& ink, const HlStyle& paper)
{
Set(pos, count, ink);
SetPaper(pos, count, paper.color);
pos += count;
}
To simplify the use, the third parameter(const HlStyle& paper) can be just a color:
void HighlightOutput::Put(int count, const HlStyle& ink, const Color paper)
{
Set(pos, count, ink);
SetPaper(pos, count, paper);
pos += count;
}
with this overload, instead of
HlStyle paper;
paper.color = LtYellow();
Put(5, ink, paper);
i can call it like:
regards
omari.
|
|
|
Goto Forum:
Current Time: Mon May 13 09:11:29 CEST 2024
Total time taken to generate the page: 0.01752 seconds
|