ladybird/Userland/Libraries/LibKeyboard/CharacterMapFile.h

24 lines
428 B
C
Raw Normal View History

/*
* 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:
2022-04-01 20:58:27 +03:00
static ErrorOr<CharacterMapData> load_from_file(String const& filename);
private:
2022-04-01 20:58:27 +03:00
static Vector<u32> read_map(JsonObject const& json, String const& name);
};
}