HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
glyph_id.hpp
1// Distributed under the Boost Software License, Version 1.0.
2// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
3
4#pragma once
5
6#include "../unicode/unicode.hpp"
7#include "../utility/utility.hpp"
8#include "../macros.hpp"
9#include <algorithm>
10#include <utility>
11
12hi_export_module(hikogui.font : glyph_id);
13
14hi_export namespace hi { inline namespace v1 {
15
22class glyph_id : public tagged_id<glyph_id, uint16_t, std::numeric_limits<uint16_t>::max()> {
23public:
24 using super = tagged_id<glyph_id, uint16_t, std::numeric_limits<uint16_t>::max()>;
25 using super::super;
26};
27
28}}
29
30template<>
31struct std::hash<hi::glyph_id> {
32 [[nodiscard]] size_t operator()(hi::glyph_id rhs) const noexcept
33 {
35 }
36};
37
The HikoGUI namespace.
Definition array_generic.hpp:21
The HikoGUI API version 1.
Definition array_generic.hpp:22
The identifier of a glyph in a font-file.
Definition glyph_id.hpp:22
T operator()(T... args)