EN
RU
Portals
0.7.0 · dev
0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Toggle main menu visibility
Loading...
Searching...
No Matches
glyph_profile.hpp
1
// Copyright (c) 2026 ttldtor.
2
// SPDX-License-Identifier: BSL-1.0
3
#pragma once
4
5
#include <cstdint>
6
7
namespace
portals
{
12
enum class
GlyphProfile
: std::uint8_t {
13
DEFAULT
,
14
UNICODE_GLYPHS
,
15
ASCII
,
16
NF_ROUNDED
,
17
NF_CHEVRON
,
18
NF_SLASH
,
19
NF_BACKSLASH
20
};
21
23
enum class
GlyphFallback
: std::uint8_t {
24
UNICODE_GLYPHS
,
25
ASCII
26
};
27
29
struct
GlyphSelection
{
30
GlyphProfile
profile
{
GlyphProfile::DEFAULT
};
31
GlyphFallback
fallback
{
GlyphFallback::UNICODE_GLYPHS
};
32
34
constexpr
bool
operator==
(
const
GlyphSelection
&other)
const
=
default
;
35
};
36
}
// namespace portals
portals
Public Portals API.
Definition
action.hpp:8
portals::ChartGlyphSet::ASCII
@ ASCII
Portable vertical bar and hash brushes.
Definition
chart.hpp:56
portals::GlyphProfile
GlyphProfile
Explicit glyph map, independent of colors and geometry. NF maps use Nerd Fonts 3 Powerline codepoints...
Definition
glyph_profile.hpp:12
portals::GlyphProfile::NF_CHEVRON
@ NF_CHEVRON
Powerline chevron horizontal caps, Unicode vertical inset caps.
Definition
glyph_profile.hpp:17
portals::GlyphProfile::NF_SLASH
@ NF_SLASH
Powerline slash horizontal caps, Unicode vertical inset caps.
Definition
glyph_profile.hpp:18
portals::GlyphProfile::DEFAULT
@ DEFAULT
Preserve the control's existing glyph sources.
Definition
glyph_profile.hpp:13
portals::GlyphProfile::UNICODE_GLYPHS
@ UNICODE_GLYPHS
Portable Unicode rounded/inset forms.
Definition
glyph_profile.hpp:14
portals::GlyphProfile::NF_ROUNDED
@ NF_ROUNDED
Powerline rounded horizontal caps, Unicode vertical inset caps.
Definition
glyph_profile.hpp:16
portals::GlyphProfile::NF_BACKSLASH
@ NF_BACKSLASH
Powerline backslash horizontal caps, Unicode vertical inset caps.
Definition
glyph_profile.hpp:19
portals::GlyphFallback
GlyphFallback
Portable replacement when the selected map fails one-cell admission.
Definition
glyph_profile.hpp:23
portals::GlyphFallback::UNICODE_GLYPHS
@ UNICODE_GLYPHS
Unicode replacement, with ASCII when Unicode is not one cell.
Definition
glyph_profile.hpp:24
portals::GlyphSelection
Complete logical selection; resolution and copies never allocate.
Definition
glyph_profile.hpp:29
portals::GlyphSelection::operator==
constexpr bool operator==(const GlyphSelection &other) const =default
portals::GlyphSelection::fallback
GlyphFallback fallback
Explicit admission fallback.
Definition
glyph_profile.hpp:31
portals::GlyphSelection::profile
GlyphProfile profile
Existing sources unless explicitly selected.
Definition
glyph_profile.hpp:30
include
portals
glyph_profile.hpp