serenity/Userland/Libraries/LibKeyboard/CharacterMapFile.h
2021-04-29 22:16:18 +02:00

23 lines
429 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Copyright (c) 2020, Hüseyin Aslıtürk <asliturk@hotmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/JsonObject.h>
#include <LibKeyboard/CharacterMapData.h>
namespace Keyboard {
class CharacterMapFile {
public:
static Optional<CharacterMapData> load_from_file(const String& filename);
private:
static Vector<u32> read_map(const JsonObject& json, const String& name);
};
}