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

A custom component declaration (spec 5 §10). More...

#include <document.hpp>

Public Attributes

std::string name
 The component's name.
std::string path
 The declaration's JSON Pointer.
std::string qml
 The content hash of a delivered QML component (sha256:<hex>); empty for a host component.
std::string host
 The name of a host component; empty for a delivered one.
std::int64_t version = 0
 The host component's version.
std::map< std::string, std::string, std::less<> > props
 The props and their prop types (string, bool, int, exact, number, json).
std::map< std::string, Type, std::less<> > events
 The events and their payload types.
DocNodePtr fallback
 The subtree of built-in nodes a renderer shows when it cannot load the component.

Detailed Description

A custom component declaration (spec 5 §10).

Definition at line 470 of file document.hpp.

Member Data Documentation

◆ name

std::string morph::ui::Component::name

The component's name.

Definition at line 472 of file document.hpp.

◆ path

std::string morph::ui::Component::path

The declaration's JSON Pointer.

Definition at line 474 of file document.hpp.

◆ qml

std::string morph::ui::Component::qml

The content hash of a delivered QML component (sha256:<hex>); empty for a host component.

Definition at line 476 of file document.hpp.

◆ host

std::string morph::ui::Component::host

The name of a host component; empty for a delivered one.

Definition at line 478 of file document.hpp.

◆ version

std::int64_t morph::ui::Component::version = 0

The host component's version.

Definition at line 480 of file document.hpp.

◆ props

std::map<std::string, std::string, std::less<> > morph::ui::Component::props

The props and their prop types (string, bool, int, exact, number, json).

Definition at line 482 of file document.hpp.

◆ events

std::map<std::string, Type, std::less<> > morph::ui::Component::events

The events and their payload types.

Definition at line 484 of file document.hpp.

◆ fallback

DocNodePtr morph::ui::Component::fallback

The subtree of built-in nodes a renderer shows when it cannot load the component.

Definition at line 486 of file document.hpp.


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