sources/coloredline.cpp

branch
protocol5
changeset 133
4d8fa5394d67
parent 131
4996c8684b93
parent 132
8a4690db252e
child 134
644935ff6bc1
equal deleted inserted replaced
131:4996c8684b93 133:4d8fa5394d67
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 }

mercurial