174 m_data << RLINE_ON_BOLD; |
174 m_data << RLINE_ON_BOLD; |
175 } |
175 } |
176 |
176 |
177 // ------------------------------------------------------------------------------------------------- |
177 // ------------------------------------------------------------------------------------------------- |
178 // |
178 // |
|
179 void ColoredLine::add_string (const String& text) |
|
180 { |
|
181 for (char a : text) |
|
182 add_char (a); |
|
183 } |
|
184 |
|
185 // ------------------------------------------------------------------------------------------------- |
|
186 // |
179 void ColoredLine::set_color (Color a, bool on) |
187 void ColoredLine::set_color (Color a, bool on) |
180 { |
188 { |
181 assert (a < 8); |
189 assert (a < 8); |
182 m_data << (a + (on ? RLINE_ON_COLOR : RLINE_OFF_COLOR)); |
190 m_data << (a + (on ? RLINE_ON_COLOR : RLINE_OFF_COLOR)); |
183 } |
191 } |