Const-qualified Color4::EscapeCode FGEscapeCode BGEscapeCode ToEscapeCode.
This commit is contained in:
@@ -132,10 +132,10 @@ public:
|
||||
LCH ToLCH() const;
|
||||
|
||||
// TODO: Disparate with mcolor::toEscapeCode, resolve.
|
||||
[[nodiscard]] std::string EscapeCode(bool bg = false, bool bold = false);
|
||||
[[nodiscard]] std::string EscapeCode(bool bg = false, bool bold = false) const;
|
||||
|
||||
[[nodiscard]] std::string FGEscapeCode(bool bold = false);
|
||||
[[nodiscard]] std::string BGEscapeCode(bool bold = false);
|
||||
[[nodiscard]] std::string FGEscapeCode(bool bold = false) const;
|
||||
[[nodiscard]] std::string BGEscapeCode(bool bold = false) const;
|
||||
|
||||
|
||||
bool operator==(const Color4& rhs) const;
|
||||
@@ -143,7 +143,7 @@ public:
|
||||
bool operator!=(const Color4& rhs) const;
|
||||
|
||||
|
||||
std::string ToEscapeCode(bool bg = false);
|
||||
std::string ToEscapeCode(bool bg = false) const;
|
||||
};
|
||||
|
||||
inline std::ostream& operator << (std::ostream& os, const Color4& c) {
|
||||
|
Reference in New Issue
Block a user