sources/coloredline.cpp

branch
protocol5
changeset 78
c1d43ade656e
parent 73
07dda51a7a8e
child 106
7b156b764d11
equal deleted inserted replaced
77:32ef969adeed 78:c1d43ade656e
123 } 123 }
124 } 124 }
125 125
126 // ------------------------------------------------------------------------------------------------- 126 // -------------------------------------------------------------------------------------------------
127 // 127 //
128 void ColoredLine::add_string (const String& text)
129 {
130 for (char a : text)
131 add_char (a);
132 }
133
134 // -------------------------------------------------------------------------------------------------
135 //
128 void ColoredLine::set_color (Color a, bool on) 136 void ColoredLine::set_color (Color a, bool on)
129 { 137 {
130 switch (a) 138 switch (a)
131 { 139 {
132 case BLACK: m_data << (on ? RLINE_ON_BLACK : RLINE_OFF_BLACK); break; 140 case BLACK: m_data << (on ? RLINE_ON_BLACK : RLINE_OFF_BLACK); break;

mercurial