sources/coloredline.cpp

changeset 132
8a4690db252e
parent 113
b3a33bc2e482
child 137
485cb6d6b98c
child 133
4d8fa5394d67
equal deleted inserted replaced
129:a556ce001e26 132:8a4690db252e
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 }

mercurial