mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:37:34 +00:00
LibGfx: Add formatters for Gfx::Color's different representations
This makes debugging these values a bit easier
This commit is contained in:
parent
1f88ca2a03
commit
29b70485fc
2 changed files with 30 additions and 0 deletions
|
@ -626,6 +626,21 @@ struct Formatter<Gfx::Color> : public Formatter<StringView> {
|
|||
ErrorOr<void> format(FormatBuilder&, Gfx::Color);
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Formatter<Gfx::YUV> : public Formatter<FormatString> {
|
||||
ErrorOr<void> format(FormatBuilder&, Gfx::YUV);
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Formatter<Gfx::HSV> : public Formatter<FormatString> {
|
||||
ErrorOr<void> format(FormatBuilder&, Gfx::HSV);
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Formatter<Gfx::Oklab> : public Formatter<FormatString> {
|
||||
ErrorOr<void> format(FormatBuilder&, Gfx::Oklab);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
namespace IPC {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue