Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::FontScopeId Struct Reference

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

Detailed Description

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.

Member Enumeration Documentation

◆ Kind

enum class pulp::canvas::FontScopeId::Kind : std::uint8_t
strong
Enumerator
Global 
Plugin 
View 

Member Function Documentation

◆ global()

constexpr FontScopeId pulp::canvas::FontScopeId::global ( )
inlinestaticconstexprnoexcept

◆ operator==()

bool pulp::canvas::FontScopeId::operator== ( const FontScopeId & ) const
default

◆ plugin()

constexpr FontScopeId pulp::canvas::FontScopeId::plugin ( std::uint64_t plugin_id)
inlinestaticconstexprnoexcept

◆ view()

constexpr FontScopeId pulp::canvas::FontScopeId::view ( std::uint64_t view_id)
inlinestaticconstexprnoexcept

Member Data Documentation

◆ id

std::uint64_t pulp::canvas::FontScopeId::id = 0

◆ kind

Kind pulp::canvas::FontScopeId::kind = Kind::Global

The documentation for this struct was generated from the following file: