summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Emoji.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-02-22 21:38:37 +0000
committerLinus Groh <mail@linusgroh.de>2022-02-23 21:53:30 +0000
commit514f3e9c741909a731b6c445c156f26dd390fcd9 (patch)
treeb160df2ef2efc32bcfba959cbf4cbe832cd6c51f /Userland/Libraries/LibGfx/Emoji.h
parent1752f7720e275323237eba8554cb7fca9fb9a1e0 (diff)
downloadserenity-514f3e9c741909a731b6c445c156f26dd390fcd9.zip
LibGfx: Add Emoji::emoji_for_code_points(Span<u32> const&)
Not all emojis are just one code point, so the existing API is not sufficient: Emoji::emoji_for_code_point(u32). The file name for such emojis is simply each U+XXXX separated by an underscore.
Diffstat (limited to 'Userland/Libraries/LibGfx/Emoji.h')
-rw-r--r--Userland/Libraries/LibGfx/Emoji.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Emoji.h b/Userland/Libraries/LibGfx/Emoji.h
index d9859362ae..9f706b451b 100644
--- a/Userland/Libraries/LibGfx/Emoji.h
+++ b/Userland/Libraries/LibGfx/Emoji.h
@@ -1,11 +1,13 @@
/*
* Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
+ * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
+#include <AK/Forward.h>
#include <AK/Types.h>
namespace Gfx {
@@ -14,7 +16,8 @@ class Bitmap;
class Emoji {
public:
- static const Gfx::Bitmap* emoji_for_code_point(u32 code_point);
+ static Gfx::Bitmap const* emoji_for_code_point(u32 code_point);
+ static Gfx::Bitmap const* emoji_for_code_points(Span<u32> const&);
};
}