sources/coloredline.h

changeset 183
9b6a0daedfc0
parent 143
b9993733952a
child 190
90bf9049e5eb
equal deleted inserted replaced
182:20ca0a6be175 183:9b6a0daedfc0
67 ColoredLine(); 67 ColoredLine();
68 68
69 const Vector<int>& data() const { return m_data; } 69 const Vector<int>& data() const { return m_data; }
70 int length() const { return m_length; } 70 int length() const { return m_length; }
71 void addChar(char ch); 71 void addChar(char ch);
72 void addString(const String& msg); 72 void addString(const std::string& msg);
73 void finalize(); 73 void finalize();
74 int rows(int cols) const; 74 int rows(int cols) const;
75 75
76 private: 76 private:
77 void activateColor(Color color, bool bold); 77 void activateColor(Color color, bool bold);
81 int m_length; 81 int m_length;
82 bool m_final; 82 bool m_final;
83 Color m_activeColor; 83 Color m_activeColor;
84 bool m_boldActive; 84 bool m_boldActive;
85 int m_colorCodeStage; 85 int m_colorCodeStage;
86 String m_string; 86 std::string m_string;
87 String m_incomingColorName; 87 std::string m_incomingColorName;
88 }; 88 };
89 89
90 END_ZFC_NAMESPACE 90 END_ZFC_NAMESPACE

mercurial