sources/coloredline.h

changeset 69
eb4c25284a19
parent 60
268721e6be20
child 73
07dda51a7a8e
equal deleted inserted replaced
68:202e74157de5 69:eb4c25284a19
60 class ColoredLine 60 class ColoredLine
61 { 61 {
62 public: 62 public:
63 ColoredLine() {} 63 ColoredLine() {}
64 64
65 METHOD data() const -> const Vector<int>& { return m_data; } 65 const Vector<int>& data() const { return m_data; }
66 METHOD length() const -> int { return m_length; } 66 int length() const { return m_length; }
67 METHOD add_char (char ch) -> void; 67 void add_char (char ch);
68 METHOD finalize() -> void; 68 void finalize();
69 METHOD rows (int cols) const -> int; 69 int rows (int cols) const;
70 70
71 private: 71 private:
72 METHOD set_color (Color a, bool on) -> void; 72 void set_color (Color a, bool on);
73 73
74 Vector<int> m_data; 74 Vector<int> m_data;
75 int m_length = 0; 75 int m_length = 0;
76 bool m_final = false; 76 bool m_final = false;
77 Color m_activeColor = DEFAULT; 77 Color m_activeColor = DEFAULT;

mercurial