summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/Color.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-29 15:31:45 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-29 15:31:45 +0200
commit17e76b47608a4b229e7315ec94f44293b24ac93d (patch)
tree59d75b2cd8ed62ae089ac8561f768ff2b11be134 /Libraries/LibGfx/Color.h
parentbc305a16aeeabdbccd2735da0560341450940c3d (diff)
downloadserenity-17e76b47608a4b229e7315ec94f44293b24ac93d.zip
LibGfx: Add Color::to_string_without_alpha()
This simply returns an "#rrggbb" string and ignores the alpha value.
Diffstat (limited to 'Libraries/LibGfx/Color.h')
-rw-r--r--Libraries/LibGfx/Color.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGfx/Color.h b/Libraries/LibGfx/Color.h
index 490b3d7249..f1601aa8df 100644
--- a/Libraries/LibGfx/Color.h
+++ b/Libraries/LibGfx/Color.h
@@ -170,6 +170,7 @@ public:
}
String to_string() const;
+ String to_string_without_alpha() const;
static Optional<Color> from_string(const StringView&);
HSV to_hsv() const