morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::Bundle Struct Reference

What an open source hands the frontend: the application's screens, verified. More...

#include <frontend.hpp>

Public Attributes

std::string applicationId
 The application's id, as the source's handshake names it.
std::string manifestDigest
 The SHA-256 of the bundle's manifest, in lower-case hexadecimal; every document below was verified against the manifest, and the manifest against this digest.
std::map< std::string, std::string, std::less<> > documents
 Every document of the bundle, by id, as its JSON text: the screens, the app shell, and the app document (app) when the bundle has one.
std::map< std::string, std::string, std::less<> > themes
 The theme's files, by id, as their JSON text: the theme index and the token files it names; empty when the bundle has no theme.
std::map< std::string, std::string, std::less<> > icons
 The theme's icon set, by icon name, as SVG text; empty when the theme declares none.

Detailed Description

What an open source hands the frontend: the application's screens, verified.

The document model and the interpreter read it (docs/spec/ui/frontend.md, "Bundle"); the frontend seam only carries it from the source to the shell.

Definition at line 91 of file frontend.hpp.

Member Data Documentation

◆ applicationId

std::string morph::ui::Bundle::applicationId

The application's id, as the source's handshake names it.

Definition at line 93 of file frontend.hpp.

◆ manifestDigest

std::string morph::ui::Bundle::manifestDigest

The SHA-256 of the bundle's manifest, in lower-case hexadecimal; every document below was verified against the manifest, and the manifest against this digest.

Definition at line 96 of file frontend.hpp.

◆ documents

std::map<std::string, std::string, std::less<> > morph::ui::Bundle::documents

Every document of the bundle, by id, as its JSON text: the screens, the app shell, and the app document (app) when the bundle has one.

Definition at line 99 of file frontend.hpp.

◆ themes

std::map<std::string, std::string, std::less<> > morph::ui::Bundle::themes

The theme's files, by id, as their JSON text: the theme index and the token files it names; empty when the bundle has no theme.

Definition at line 102 of file frontend.hpp.

◆ icons

std::map<std::string, std::string, std::less<> > morph::ui::Bundle::icons

The theme's icon set, by icon name, as SVG text; empty when the theme declares none.

Definition at line 104 of file frontend.hpp.


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