morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
backend.hpp File Reference

morph::qt_quick::Backend: the view tree's widgets as Qt Quick items. More...

#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include "../attributes.hpp"
#include "../ui/backend.hpp"

Go to the source code of this file.

Classes

struct  morph::qt_quick::BackendOptions
 What a Backend is made with beside its engine and host item. More...
class  morph::qt_quick::Backend
 ui::IViewBackend over Qt Quick: each widget is a Qt Quick item made from its kind's MorphUi component, or from the component the restyle map names for that kind. More...
struct  morph::qt_quick::CustomRequest
 What IViewBackend::createCustom asks for. More...
class  morph::qt_quick::CustomWidget
 A component a renderer loaded in a custom node's place (spec 5 §10): a bundle's verified QML or a host component, given the props the document binds and handing back the events it raises. More...

Functions

std::string morph::qt_quick::widthClassOf (double logicalWidth)
 The window width class {"env": "widthClass"} reads (spec 3 §8).

Detailed Description

morph::qt_quick::Backend: the view tree's widgets as Qt Quick items.

Specified in docs/spec/qt_quick/backend.md.

Definition in file backend.hpp.

Function Documentation

◆ widthClassOf()

std::string morph::qt_quick::widthClassOf ( double logicalWidth)
nodiscard

The window width class {"env": "widthClass"} reads (spec 3 §8).

Parameters
logicalWidthA width in logical pixels.
Returns
"compact" below 600, "medium" below 1200, else "expanded".