182 m_data << RLINE_ON_BOLD; |
182 m_data << RLINE_ON_BOLD; |
183 } |
183 } |
184 |
184 |
185 // ------------------------------------------------------------------------------------------------- |
185 // ------------------------------------------------------------------------------------------------- |
186 // |
186 // |
|
187 void ColoredLine::add_string (const String& text) |
|
188 { |
|
189 for (char a : text) |
|
190 add_char (a); |
|
191 } |
|
192 |
|
193 // ------------------------------------------------------------------------------------------------- |
|
194 // |
187 void ColoredLine::set_color (Color a, bool on) |
195 void ColoredLine::set_color (Color a, bool on) |
188 { |
196 { |
189 assert (a < 8); |
197 assert (a < 8); |
190 m_data << (a + (on ? RLINE_ON_COLOR : RLINE_OFF_COLOR)); |
198 m_data << (a + (on ? RLINE_ON_COLOR : RLINE_OFF_COLOR)); |
191 } |
199 } |