130:9f54db6f9922 | 131:4996c8684b93 |
---|---|
1 /* | 1 /* |
2 Copyright 2014, 2015 Teemu Piippo | 2 Copyright 2014 - 2016 Teemu Piippo |
3 All rights reserved. | 3 All rights reserved. |
4 | 4 |
5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
6 modification, are permitted provided that the following conditions | 6 modification, are permitted provided that the following conditions |
7 are met: | 7 are met: |
72 void add_string (const String& msg); | 72 void add_string (const 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 activate_color (Color color, bool bold); | |
77 void set_color (Color a, bool on); | 78 void set_color (Color a, bool on); |
78 | 79 |
79 Vector<int> m_data; | 80 Vector<int> m_data; |
80 int m_length; | 81 int m_length; |
81 bool m_final; | 82 bool m_final; |
82 Color m_activeColor; | 83 Color m_activeColor; |
83 bool m_boldActive; | 84 bool m_boldActive; |
84 int m_colorCodeStage; | 85 int m_colorCodeStage; |
85 String m_string; | 86 String m_string; |
87 String m_incomingColorName; | |
86 }; | 88 }; |
87 | 89 |
88 END_ZFC_NAMESPACE | 90 END_ZFC_NAMESPACE |