Opaque identifier for a FontScope (defined in font_scope.hpp). More...
#include <font_options.hpp>
Public Types | |
| enum class | Kind : std::uint8_t { Global , Plugin , View } |
Public Member Functions | |
| bool | operator== (const FontScopeId &) const =default |
Static Public Member Functions | |
| static constexpr FontScopeId | global () noexcept |
| static constexpr FontScopeId | plugin (std::uint64_t plugin_id) noexcept |
| static constexpr FontScopeId | view (std::uint64_t view_id) noexcept |
Public Attributes | |
| Kind | kind = Kind::Global |
| std::uint64_t | id = 0 |
Opaque identifier for a FontScope (defined in font_scope.hpp).
Carried inside FontOptions so cache keys include the scope, which in turn means a Plugin(A) registration cannot pollute Plugin(B) resolutions (and vice versa). The View kind powers hot-reload in the design-import workflow.
|
strong |
|
inlinestaticconstexprnoexcept |
|
default |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
| std::uint64_t pulp::canvas::FontScopeId::id = 0 |
| Kind pulp::canvas::FontScopeId::kind = Kind::Global |