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