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

What a Backend is made with beside its engine and host item. More...

#include <backend.hpp>

Public Attributes

Components * components = nullptr
 The restyle map and the custom components; null renders every kind with its MorphUi component and loads no custom component. Borrowed: it outlives the backend.
std::function< void(std::string const &widthClass)> onWidthClass
 Called with the host item's width class (widthClassOf) once at construction and again each time the class changes, not on every resize; empty calls nothing.

Detailed Description

What a Backend is made with beside its engine and host item.

Definition at line 35 of file backend.hpp.

Member Data Documentation

◆ components

Components* morph::qt_quick::BackendOptions::components = nullptr

The restyle map and the custom components; null renders every kind with its MorphUi component and loads no custom component. Borrowed: it outlives the backend.

Definition at line 38 of file backend.hpp.

◆ onWidthClass

std::function<void(std::string const& widthClass)> morph::qt_quick::BackendOptions::onWidthClass

Called with the host item's width class (widthClassOf) once at construction and again each time the class changes, not on every resize; empty calls nothing.

Definition at line 41 of file backend.hpp.


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