Const-qualified Color4::EscapeCode FGEscapeCode BGEscapeCode ToEscapeCode.

This commit is contained in:
2025-06-04 13:11:54 -05:00
parent 954b8cb4b5
commit 25d804ce79

View File

@@ -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) {